Removing webmail entries from the readme
This commit is contained in:
parent
11d8c42f98
commit
f43a1d604d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue