mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-27 16:27:36 +00:00
wallos: add cron in installer for yearly cost (#6133)
* wallos: fix: yearly cost * Update wallos.sh * Update wallos.sh --------- Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
@ -41,6 +41,9 @@ function update_script() {
|
||||
rm -rf /opt/wallos/db/wallos.empty.db
|
||||
mv /opt/wallos.db /opt/wallos/db/wallos.db
|
||||
mv /opt/logos/* /opt/wallos/images/uploads/logos
|
||||
if ! grep -q "storetotalyearlycost.php" /opt/wallos.cron; then
|
||||
echo "30 1 * * 1 php /opt/wallos/endpoints/cronjobs/storetotalyearlycost.php >> /var/log/cron/storetotalyearlycost.log 2>&1" >> /opt/wallos.cron
|
||||
fi
|
||||
chown -R www-data:www-data /opt/wallos
|
||||
chmod -R 755 /opt/wallos
|
||||
mkdir -p /var/log/cron
|
||||
|
@ -64,6 +64,7 @@ cat <<EOF >/opt/wallos.cron
|
||||
*/2 * * * * php /opt/wallos/endpoints/cronjobs/sendverificationemails.php >> /var/log/cron/sendverificationemail.log 2>&1
|
||||
*/2 * * * * php /opt/wallos/endpoints/cronjobs/sendresetpasswordemails.php >> /var/log/cron/sendresetpasswordemails.log 2>&1
|
||||
0 */6 * * * php /opt/wallos/endpoints/cronjobs/checkforupdates.php >> /var/log/cron/checkforupdates.log 2>&1
|
||||
30 1 * * 1 php /opt/wallos/endpoints/cronjobs/storetotalyearlycost.php >> /var/log/cron/storetotalyearlycost.log 2>&1
|
||||
EOF
|
||||
crontab /opt/wallos.cron
|
||||
msg_ok "Crontabs setup"
|
||||
|
Reference in New Issue
Block a user