File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6363fi
6464
6565# Update ip helo for exim
66- if [[] ! -z " $MAIL_SYSTEM " && " $helo " == " yes" ]]; then
66+ if [[ ! -z " $MAIL_SYSTEM " && " $helo " == " yes" ]]; then
6767 pub_ip=$( curl --ipv4 -s https://ip.hestiacp.com/)
6868 $BIN /v-change-sys-ip-helo $pub_ip $domain
6969fi
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if [ -f "$HESTIA/web/inc/nginx_proxy" ]; then
7272 # Default behaviour
7373
7474 # Preform an check if Nginx is valid as reload doesn't throw an error / exit
75- result= $( service $WEB_SYSTEM $ PROXY_SYSTEM >> /dev/null 2>&1 )
75+ service $PROXY_SYSTEM configtest >> /dev/null 2>&1
7676 if [ $? -ne 0 ]; then
7777 send_email_report
7878 check_result $E_RESTART " $PROXY_SYSTEM restart failed"
Original file line number Diff line number Diff line change @@ -55,13 +55,13 @@ if [ -z "$WEB_SYSTEM" ] || [ "$WEB_SYSTEM" = 'remote' ]; then
5555 exit
5656fi
5757if [ $WEB_SYSTEM = ' nginx' ]; then
58- result= $( service $WEB_SYSTEM configtest >> /dev/null 2>&1 )
58+ service $WEB_SYSTEM configtest >> /dev/null 2>&1
5959 if [ $? -ne 0 ]; then
6060 send_email_report
6161 check_result $E_RESTART " $WEB_SYSTEM restart failed"
6262 fi
6363elif [ $WEB_SYSTEM = ' apache2' ]; then
64- result= $( apache2ctl configtest >> /dev/null 2>&1 )
64+ apache2ctl configtest >> /dev/null 2>&1
6565 if [ $? -ne 0 ]; then
6666 send_email_report
6767 check_result $E_RESTART " $WEB_SYSTEM restart failed"
You can’t perform that action at this time.
0 commit comments