cron mini bug fix
This commit is contained in:
parent
9f600f4e35
commit
c4796ba7b2
2 changed files with 6 additions and 3 deletions
|
@ -7,7 +7,7 @@ name = "Yurdle"
|
||||||
description.en = "yurdle package"
|
description.en = "yurdle package"
|
||||||
description.tr = "yurdle paketi"
|
description.tr = "yurdle paketi"
|
||||||
|
|
||||||
version = "1.5~ynh1"
|
version = "1.5~ynh2"
|
||||||
|
|
||||||
maintainers = ["asandikci"]
|
maintainers = ["asandikci"]
|
||||||
|
|
||||||
|
|
|
@ -159,12 +159,15 @@ chown -R $app:$app "$install_dir/src/"
|
||||||
php -r "require '/var/www/$app/src/server.php'; updateRemoteData(); "
|
php -r "require '/var/www/$app/src/server.php'; updateRemoteData(); "
|
||||||
chown $app:$app "$install_dir/data.toml"
|
chown $app:$app "$install_dir/data.toml"
|
||||||
chmod 700 "$install_dir/data.toml"
|
chmod 700 "$install_dir/data.toml"
|
||||||
echo "*/10 * * * * php -r \"require '/var/www/$app/src/server.php'; updateRemoteData(); \"" >>"/etc/cron.d/$app"
|
echo "*/10 * * * * yurdle /usr/bin/php8.2 -r \"require '/var/www/$app/src/server.php'; updateRemoteData(); \"" >>"/etc/cron.d/$app"
|
||||||
|
|
||||||
php -r "require '/var/www/$app/src/server.php'; chooseTodayPerson(); "
|
php -r "require '/var/www/$app/src/server.php'; chooseTodayPerson(); "
|
||||||
chown $app:$app "$install_dir/src/todays.php"
|
chown $app:$app "$install_dir/src/todays.php"
|
||||||
chmod 700 "$install_dir/src/todays.php"
|
chmod 700 "$install_dir/src/todays.php"
|
||||||
echo "0 0 * * * php -r \"require '/var/www/$app/src/server.php'; chooseTodayPerson(); \"" >>"/etc/cron.d/$app"
|
echo "0 0 * * * yurdle /usr/bin/php8.2 -r \"require '/var/www/$app/src/server.php'; chooseTodayPerson(); \"" >>"/etc/cron.d/$app"
|
||||||
|
|
||||||
|
chmod 700 "/etc/cron.d/$app"
|
||||||
|
systemctl restart cron.service
|
||||||
|
|
||||||
### For more complex cases where you want to replace stuff using regexes,
|
### For more complex cases where you want to replace stuff using regexes,
|
||||||
### you shoud rely on ynh_replace_string (which is basically a wrapper for sed)
|
### you shoud rely on ynh_replace_string (which is basically a wrapper for sed)
|
||||||
|
|
Loading…
Reference in a new issue