mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-26 15:57:37 +00:00
Compare commits
3 Commits
add-script
...
CrazyWolf1
Author | SHA1 | Date | |
---|---|---|---|
3cca6ef879 | |||
c28da2a4e4 | |||
13cdadb641 |
@ -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