Some minor fixes, mostly typos..
This commit is contained in:
parent
19dc947882
commit
e38f1a704d
@ -963,7 +963,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echononl " Disable crontab for user root"
|
echononl " Disable crontab for user root"
|
||||||
echo "" >> ${logdir}/main.log
|
|
||||||
echo "crontab -r -u root" > $tmp_err_msg
|
echo "crontab -r -u root" > $tmp_err_msg
|
||||||
crontab -r -u root > $tmp_err_msg 2>&1
|
crontab -r -u root > $tmp_err_msg 2>&1
|
||||||
if [[ "$?" = "0" ]]; then
|
if [[ "$?" = "0" ]]; then
|
||||||
|
@ -148,7 +148,7 @@ if $systemd_supported ; then
|
|||||||
# -
|
# -
|
||||||
if systemctl -t service list-unit-files \
|
if systemctl -t service list-unit-files \
|
||||||
| grep -e "^apache2.service" \
|
| grep -e "^apache2.service" \
|
||||||
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
|
| grep -q -E "(enabled|disabled)" 2> /dev/null ; then
|
||||||
|
|
||||||
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
||||||
| grep -e "^apache2.service" \
|
| grep -e "^apache2.service" \
|
||||||
|
@ -109,7 +109,7 @@ if $systemd_supported ; then
|
|||||||
# -
|
# -
|
||||||
if systemctl -t service list-unit-files \
|
if systemctl -t service list-unit-files \
|
||||||
| grep -e "^apache2.service" \
|
| grep -e "^apache2.service" \
|
||||||
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
|
| grep -q -E "(enabled|disabled)" 2> /dev/null ; then
|
||||||
|
|
||||||
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
||||||
| grep -e "^apache2.service" \
|
| grep -e "^apache2.service" \
|
||||||
|
@ -133,7 +133,7 @@ if $systemd_supported ; then
|
|||||||
# -
|
# -
|
||||||
if systemctl -t service list-unit-files \
|
if systemctl -t service list-unit-files \
|
||||||
| grep -e "^apache2.service" \
|
| grep -e "^apache2.service" \
|
||||||
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
|
| grep -q -E "(enabled|disabled)" 2> /dev/null ; then
|
||||||
|
|
||||||
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
||||||
| grep -e "^apache2.service" \
|
| grep -e "^apache2.service" \
|
||||||
@ -457,23 +457,21 @@ echo -e "\n\n \033[37m\033[1mSome pre-installation tasks..\033[m\n"
|
|||||||
## - Disable crontab for user root
|
## - Disable crontab for user root
|
||||||
## -
|
## -
|
||||||
echononl " Backup crontab"
|
echononl " Backup crontab"
|
||||||
echo "" >> ${logdir}/main.log
|
crontab -u root -l >> $crontab_backup_file 2> $log_file
|
||||||
echo "crontab -u root -l > $crontab_backup_file" >> ${logdir}/main.log
|
|
||||||
crontab -u root -l >> $crontab_backup_file 2>> ${logdir}/main.log
|
|
||||||
if [[ "$?" = "0" ]]; then
|
if [[ "$?" = "0" ]]; then
|
||||||
echo_ok
|
echo_ok
|
||||||
else
|
else
|
||||||
echo_failed
|
echo_failed
|
||||||
|
error "$(cat $log_file)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echononl " Disable crontab for user root"
|
echononl " Disable crontab for user root"
|
||||||
echo "" >> ${logdir}/main.log
|
crontab -r -u root > $log_file 2>&1
|
||||||
echo "crontab -r -u root" >> ${logdir}/main.log
|
|
||||||
crontab -r -u root >> ${logdir}/main.log 2>&1
|
|
||||||
if [[ "$?" = "0" ]]; then
|
if [[ "$?" = "0" ]]; then
|
||||||
echo_ok
|
echo_ok
|
||||||
else
|
else
|
||||||
echo_failed
|
echo_failed
|
||||||
|
error "$(cat $log_file)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user