Skip to content
Snippets Groups Projects
Commit dc1b9064 authored by Jesse Norell's avatar Jesse Norell
Browse files

fix letsencrypt_renew_hook.sh syntax error

parent 19b24c63
No related branches found
No related tags found
No related merge requests found
...@@ -36,15 +36,15 @@ if [ -d "$lelive" ]; then ...@@ -36,15 +36,15 @@ if [ -d "$lelive" ]; then
pureftpdpem=/etc/ssl/private/pure-ftpd.pem; if [ -e "$pureftpdpem" ]; then chmod 600 $pureftpdpem; fi pureftpdpem=/etc/ssl/private/pure-ftpd.pem; if [ -e "$pureftpdpem" ]; then chmod 600 $pureftpdpem; fi
# For Red Hat, Centos or derivatives # For Red Hat, Centos or derivatives
if which yum &> /dev/null 2>&1 ; then if which yum &> /dev/null 2>&1 ; then
if [ rpm -q pure-ftpd ]; then service pure-ftpd restart; fi if ( rpm -q pure-ftpd ); then service pure-ftpd restart; fi
if [ rpm -q monit ]; then service monit restart; fi if ( rpm -q monit ); then service monit restart; fi
if [ rpm -q postfix ]; then service postfix restart; fi if ( rpm -q postfix ); then service postfix restart; fi
if [ rpm -q dovecot ]; then service dovecot restart; fi if ( rpm -q dovecot ); then service dovecot restart; fi
if [ rpm -q mysql-server ]; then service mysqld restart; fi if ( rpm -q mysql-server ); then service mysqld restart; fi
if [ rpm -q mariadb-server ]; then service mariadb restart; fi if ( rpm -q mariadb-server ); then service mariadb restart; fi
if [ rpm -q MariaDB-server ]; then service mysql restart; fi if ( rpm -q MariaDB-server ); then service mysql restart; fi
if [ rpm -q nginx ]; then service nginx restart; fi if ( rpm -q nginx ); then service nginx restart; fi
if [ rpm -q httpd ]; then service httpd restart; fi if ( rpm -q httpd ); then service httpd restart; fi
# For Debian, Ubuntu or derivatives # For Debian, Ubuntu or derivatives
elif apt-get -v >/dev/null 2>&1 ; then elif apt-get -v >/dev/null 2>&1 ; then
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 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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment