Skip to content

Commit 05411b6

Browse files
author
Marius Burkard
committed
Merge branch '6255-letsencrypt_renew_hook-sh-error-restarting-services-on-centos' into 'develop'
Resolve "letsencrypt_renew_hook.sh error restarting services on centos" Closes #6255 See merge request ispconfig/ispconfig3!1542
2 parents 8add9a8 + dc1b906 commit 05411b6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

server/scripts/letsencrypt_renew_hook.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ if [ -d "$lelive" ]; then
3636
pureftpdpem=/etc/ssl/private/pure-ftpd.pem; if [ -e "$pureftpdpem" ]; then chmod 600 $pureftpdpem; fi
3737
# For Red Hat, Centos or derivatives
3838
if which yum &> /dev/null 2>&1 ; then
39-
if [ rpm -q pure-ftpd ]; then service pure-ftpd restart; fi
40-
if [ rpm -q monit ]; then service monit restart; fi
41-
if [ rpm -q postfix ]; then service postfix restart; fi
42-
if [ rpm -q dovecot ]; then service dovecot restart; fi
43-
if [ rpm -q mysql-server ]; then service mysqld restart; fi
44-
if [ rpm -q mariadb-server ]; then service mariadb restart; fi
45-
if [ rpm -q MariaDB-server ]; then service mysql restart; fi
46-
if [ rpm -q nginx ]; then service nginx restart; fi
47-
if [ rpm -q httpd ]; then service httpd restart; fi
39+
if ( rpm -q pure-ftpd ); then service pure-ftpd restart; fi
40+
if ( rpm -q monit ); then service monit restart; fi
41+
if ( rpm -q postfix ); then service postfix restart; fi
42+
if ( rpm -q dovecot ); then service dovecot restart; fi
43+
if ( rpm -q mysql-server ); then service mysqld restart; fi
44+
if ( rpm -q mariadb-server ); then service mariadb restart; fi
45+
if ( rpm -q MariaDB-server ); then service mysql restart; fi
46+
if ( rpm -q nginx ); then service nginx restart; fi
47+
if ( rpm -q httpd ); then service httpd restart; fi
4848
# For Debian, Ubuntu or derivatives
4949
elif apt-get -v >/dev/null 2>&1 ; then
5050
if [ $(dpkg-query -W -f='${Status}' pure-ftpd-mysql 2>/dev/null | grep -c "ok installed") -eq 1 ]; then service pure-ftpd-mysql restart; fi

0 commit comments

Comments
 (0)