Update install-new-roundcube.sh

This commit is contained in:
myvesta 2022-02-01 16:19:16 +01:00 committed by GitHub
commit a4251739e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,6 +187,11 @@ if [ "$check_grep" -eq 0 ]; then
sed -i "s|<roundcube:form name=\"form\" method=\"post\">|<br /><br /><center><a href=\"https://$DOMAIN/\" style=\"color: white; font-size: 12pt;\">$LOGINMESSAGE1</a><br /><span style=\"color: white; font-size: 8pt;\">$LOGINMESSAGE2</span></center><br /><br />\n\n<roundcube:form name=\"form\" method=\"post\">|g" /usr/share/roundcube/skins/larry/templates/login.html
fi
check_grep=$(grep -c 'MAIL_URL=' /usr/local/vesta/conf/vesta.conf)
if [ "$check_grep" -eq 0 ]; then
echo "MAIL_URL='https://$DOMAIN/'" >> /usr/local/vesta/conf/vesta.conf
fi
echo "-------------------------------------"
echo "Roundcube installed!"