mirror of
https://git.cloudron.io/cloudron/freshrss-app
synced 2025-09-03 13:55:01 +00:00
First working version
This commit is contained in:
6
start.sh
6
start.sh
@@ -2,6 +2,8 @@
|
||||
|
||||
set -eu
|
||||
|
||||
mkdir -p /run/php/sessions
|
||||
|
||||
if ! [ -f /app/data/.installed ]; then
|
||||
echo "Fresh installation, setting up..."
|
||||
rsync -a /app/code/data-orig/ /app/data/
|
||||
@@ -49,12 +51,12 @@ cat > /app/data/config.php <<EOF
|
||||
);
|
||||
EOF
|
||||
|
||||
chown -R www-data.www-data /app/data
|
||||
chown -R www-data.www-data /run/php /app/data
|
||||
|
||||
echo "Trying to update feeds every 60 secs"
|
||||
while true; do
|
||||
sleep 60
|
||||
curl 'http://localhost:8000/p/i/?c=feed&a=actualize' >/dev/stdout 2>/dev/stderr
|
||||
sudo -u www-data php /app/code/app/actualize_script.php >/dev/stdout 2>/dev/stderr
|
||||
done &
|
||||
|
||||
echo "Starting apache"
|
||||
|
Reference in New Issue
Block a user