Update install.sh

This commit is contained in:
phahulin 2017-10-31 16:20:43 +03:00 committed by GitHub
parent 3c33aebe07
commit 27916aecb5
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,10 +343,10 @@ 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
EOF"
EOF"
sudo bash -c "cat orig.crontab | crontab -"
echo "<===== configure_logrotate"