Download entrypoint.sh from lilly7998/FreshRss: direct link, hf CLI and curl.
- Browser
- Download file 1.77 kB
-
https://huggingface.co/lilly7998/FreshRss/resolve/main/entrypoint.sh
- Command line
-
hf download hf://lilly7998/FreshRss/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/lilly7998/FreshRss/resolve/main/entrypoint.sh
1.77 kB
| set -e | |
| echo "[entrypoint] === FreshRSS starting (v4) ===" | |
| echo "[entrypoint] TZ=$TZ DATA_PATH=$DATA_PATH" | |
| # ββ 1. Ensure data directories exist ββββββββββββββββββββββββββββββ | |
| mkdir -p "$DATA_PATH" "$DATA_PATH/users/admin" "$DATA_PATH/users/_/" | |
| mkdir -p "$DATA_PATH/cache" "$DATA_PATH/favicons" "$DATA_PATH/tokens" | |
| mkdir -p /data/extensions /data/log | |
| mkdir -p /data/PubSubHubbub/feeds /data/PubSubHubbub/keys | |
| mkdir -p /data/Retry-After | |
| # ββ 2. Run official entrypoint (install + user create + cron) ββββ | |
| echo "[entrypoint] running official FreshRSS entrypoint..." | |
| /var/www/FreshRSS/Docker/entrypoint.sh || true | |
| echo "[entrypoint] official entrypoint done" | |
| # ββ 3. Override Apache to run as root βββββββββββββββββββββββββββββ | |
| # HF storage bucket is FUSE β chown/chmod don't work on mounted files. | |
| # Running Apache as root is the only way to get write access. | |
| export APACHE_RUN_USER=root | |
| export APACHE_RUN_GROUP=root | |
| echo "[entrypoint] Apache will run as root (storage bucket workaround)" | |
| # ββ 4. Start cron ββββββββββββββββββββββββββββββββββββββββββββββββ | |
| if [ -n "$CRON_MIN" ]; then | |
| if command -v cron >/dev/null 2>&1; then | |
| cron || true | |
| echo "[entrypoint] cron started" | |
| fi | |
| fi | |
| # ββ 5. Start Apache ββββββββββββββββββββββββββββββββββββββββββββββ | |
| . /etc/apache2/envvars 2>/dev/null || true | |
| echo "[entrypoint] starting Apache on port $LISTEN (user=$APACHE_RUN_USER)" | |
| exec apache2 -D FOREGROUND | |