From 67f6f14b28c292e2f23190aaf6bb2b6942ac89c1 Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Thu, 29 Aug 2019 14:15:50 +0200 Subject: [PATCH] Update 'installer.sh' --- installer.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/installer.sh b/installer.sh index 8295aed..4cd0e39 100644 --- a/installer.sh +++ b/installer.sh @@ -201,16 +201,17 @@ echo "PostfixADMIN" apt install php${phpver} php${phpver}-zip php${phpver}-fpm php${phpver}-cli php${phpver}-json php${phpver}-mysql php${phpver}-opcache php${phpver}-mbstring php${phpver}-readline -y apt install libc-client2007e mlock php${phpver}-common php${phpver}-imap -y -#mkdir -p /var/www/"$domain"/html/postfixadmin/templates_c -#wget --tries=3 https://downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-3.1/postfixadmin-3.1.tar.gz -O /tmp/postfixadmin.tar.gz -#tar -xf /tmp/postfixadmin.tar.gz -C /var/www/"$domain"/html/postfixadmin --strip-components=1 -#chown -R www-data: /var/www/"$domain"/html/ -#chmod 755 -R /var/www/"$domain"/html/postfixadmin/templates_c -#wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/dev/config/postfixadmin/config.local.php -O /var/www/$domain/html/postfixadmin/config.local.php -#sed -i -e 's/PASSword/'$password'/' -e 's/dOmaINnamE/'$domain'/' /var/www/"$domain"/html/postfixadmin/config.local.php -#bash /var/www/"$domain"/html/postfixadmin/scripts/postfixadmin-cli admin add superadmin@"$domain" --superadmin 1 --active 1 --password "$password" --password2 "$password" -#groupadd -g 5000 vmail -#useradd -u 5000 -g vmail -s /usr/sbin/nologin -d /var/mail/vmail -m vmail +mkdir -p /var/www/"$domain"/html/postfixadmin/templates_c +wget --tries=3 https://downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-3.1/postfixadmin-3.1.tar.gz -O /tmp/postfixadmin.tar.gz +tar -xf /tmp/postfixadmin.tar.gz -C /var/www/"$domain"/html/postfixadmin --strip-components=1 +chmod 755 -R /var/www/"$domain"/html/postfixadmin/templates_c +chown -R www-data: /var/www/"$domain"/html/ +wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/dev/config/postfixadmin/config.local.php -O /var/www/$domain/html/postfixadmin/config.local.php +sed -i -e 's/PASSword/'$password'/' -e 's/dOmaINnamE/'$domain'/' /var/www/"$domain"/html/postfixadmin/config.local.php +sudo -u www-data php /var/www/"$domain"/html/postfixadmin/upgrade.php +bash /var/www/"$domain"/html/postfixadmin/scripts/postfixadmin-cli admin add superadmin@"$domain" --superadmin 1 --active 1 --password "$password" --password2 "$password" +groupadd -g 5000 vmail +useradd -u 5000 -g vmail -s /usr/sbin/nologin -d /var/mail/vmail -m vmail ##-------------## # Certbot #