update data immediately

This commit is contained in:
Aliberk Sandıkçı 2024-01-07 12:59:49 +03:00
parent 1e8f183c74
commit 2243997eec
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1

View file

@ -155,7 +155,7 @@ chown $app:$app "$install_dir/config.php"
chmod -R 700 "$install_dir/src/" chmod -R 700 "$install_dir/src/"
chown -R $app:$app "$install_dir/src/" chown -R $app:$app "$install_dir/src/"
php -r "require '/var/www/$app/src/server.php'; updateRemoteData(); ";
crontab -l | { cat; echo "*/10 * * * * php -r \"require '/var/www/$app/src/server.php'; updateRemoteData(); \""; } | crontab - crontab -l | { cat; echo "*/10 * * * * php -r \"require '/var/www/$app/src/server.php'; updateRemoteData(); \""; } | crontab -
### For more complex cases where you want to replace stuff using regexes, ### For more complex cases where you want to replace stuff using regexes,