1
0
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:
Dennis Schwerdel
2017-02-17 11:28:42 +01:00
parent 0b95d20d1e
commit 0dfbe30164
7 changed files with 214 additions and 5 deletions

View File

@@ -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"