Get webmail database password

This commit is contained in:
Bob Mottram 2016-04-25 19:04:41 +01:00
parent 02e1b92f6e
commit 7908b831c6
1 changed files with 12 additions and 0 deletions

View File

@ -3215,6 +3215,17 @@ function get_mariadb_gnusocial_admin_password {
fi fi
} }
function get_mariadb_webmail_admin_password {
if [ -f /home/$MY_USERNAME/README ]; then
if grep -q "MariaDB webmail admin password" /home/$MY_USERNAME/README; then
WEBMAIL_ADMIN_PASSWORD=$(cat /home/$MY_USERNAME/README | grep "MariaDB webmail admin password" | awk -F ':' '{print $2}' | sed 's/^ *//')
fi
if grep -q "Webmail administrator password" /home/$MY_USERNAME/README; then
WEBMAIL_ADMIN_PASSWORD=$(cat /home/$MY_USERNAME/README | grep "Webmail administrator password" | awk -F ':' '{print $2}' | sed 's/^ *//')
fi
fi
}
function get_mariadb_rss_reader_admin_password { function get_mariadb_rss_reader_admin_password {
if [ -f /home/$MY_USERNAME/README ]; then if [ -f /home/$MY_USERNAME/README ]; then
if grep -q "RSS reader admin password" /home/$MY_USERNAME/README; then if grep -q "RSS reader admin password" /home/$MY_USERNAME/README; then
@ -8862,6 +8873,7 @@ function install_webmail {
cd $WEBMAIL_PATH cd $WEBMAIL_PATH
cd .. cd ..
git_clone $WEBMAIL_REPO webmail git_clone $WEBMAIL_REPO webmail
cd $WEBMAIL_PATH
git checkout $WEBMAIL_COMMIT -b $WEBMAIL_COMMIT git checkout $WEBMAIL_COMMIT -b $WEBMAIL_COMMIT
if ! grep -q "Webmail commit" $COMPLETION_FILE; then if ! grep -q "Webmail commit" $COMPLETION_FILE; then
echo "Webmail commit:$WEBMAIL_COMMIT" >> $COMPLETION_FILE echo "Webmail commit:$WEBMAIL_COMMIT" >> $COMPLETION_FILE