mirror of
https://github.com/torrentpier/autoinstall.git
synced 2025-02-28 15:10:55 +03:00
Fixed CRON task execution as root (#11)
This commit is contained in:
parent
8e4d79ca84
commit
aaf92ee50b
@ -255,7 +255,7 @@ EOF
|
||||
sudo find /var/www/torrentpier -type d -exec chmod 755 {} \; 2>&1 | sudo tee -a "$logsInst" > /dev/null
|
||||
|
||||
# Setting the CRON task
|
||||
{ (sudo crontab -l; echo "* * * * * php /var/www/torrentpier/cron.php") | sudo crontab -; } 2>&1 | sudo tee -a "$logsInst" > /dev/null
|
||||
{ (sudo crontab -l; echo "* * * * * sudo -u www-data php /var/www/torrentpier/cron.php") | sudo crontab -; } 2>&1 | sudo tee -a "$logsInst" > /dev/null
|
||||
else
|
||||
echo "===================================" 2>&1 | sudo tee -a "$logsInst" > /dev/null
|
||||
echo "TorrentPier is already installed on the system. The installation cannot continue." | tee -a "$logsInst"
|
||||
|
Loading…
Reference in New Issue
Block a user