@@ -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