Update install.sh

This commit is contained in:
phahulin 2017-10-31 15:27:52 +03:00 committed by GitHub
parent a4b307d772
commit 3c33aebe07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -343,9 +343,9 @@ configure_logrotate() {
}
EOF"
sudo bash -c 'crontab -l 1> orig.crontab 2> /dev/null'
#sudo bash -c 'crontab -l 1> orig.crontab 2> /dev/null'
sudo bash -c "cat >> orig.crontab << EOF
* */1 * * * /usr/sbin/logrotate /home/${ADMIN_USERNAME}/logrotate.conf
* */1 * * * /usr/sbin/logrotate /home/${ADMIN_USERNAME}/logrotate.conf
EOF"
sudo bash -c "cat orig.crontab | crontab -"