Skip to content

Commit

Permalink
Fixed CRON task execution as root (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeAnSolovev authored Nov 25, 2024
1 parent 8e4d79c commit aaf92ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deb.install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit aaf92ee

Please sign in to comment.