Removing webmail entries from the readme

This commit is contained in:
Bob Mottram 2016-10-28 12:18:54 +01:00
parent 11d8c42f98
commit f43a1d604d
1 changed files with 7 additions and 6 deletions

View File

@ -136,8 +136,10 @@ function remove_webmail {
if [ -d $WEB_PATH/webmail ]; then
rm -rf $WEB_PATH/webmail
fi
sed -i '/Webmail /d' $COMPLETION_FILE
sed -i '/webmail /d' $COMPLETION_FILE
sed -i '/Webmail/d' $COMPLETION_FILE
sed -i '/webmail/d' $COMPLETION_FILE
sed -i '/Webmail/d' /home/$MY_USERNAME/README
sed -i '/webmail/d' /home/$MY_USERNAME/README
remove_completion_param install_webmail
}
@ -245,12 +247,11 @@ function install_webmail {
if ! grep -q "Webmail" /home/$MY_USERNAME/README; then
echo '' >> /home/$MY_USERNAME/README
echo '' >> /home/$MY_USERNAME/README
echo 'Webmail' >> /home/$MY_USERNAME/README
echo '=======' >> /home/$MY_USERNAME/README
echo '# Webmail' >> /home/$MY_USERNAME/README
if [[ $ONION_ONLY == 'no' ]]; then
echo $"Open https://$DEFAULT_DOMAIN_NAME/webmail/index.php" >> /home/$MY_USERNAME/README
echo $"To access webmail open https://$DEFAULT_DOMAIN_NAME/webmail/index.php" >> /home/$MY_USERNAME/README
else
echo $"Open http://$WEBMAIL_ONION_HOSTNAME" >> /home/$MY_USERNAME/README
echo $"To access webmail open http://$WEBMAIL_ONION_HOSTNAME" >> /home/$MY_USERNAME/README
fi
echo $"MariaDB webmail admin password: $WEBMAIL_ADMIN_PASSWORD" >> /home/$MY_USERNAME/README
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README