fixing roundcube install (TODO: check what alternc.install is doing at the same time)

This commit is contained in:
Benjamin Sonntag 2014-10-01 18:38:10 +02:00
parent f01ebc9b51
commit cf37cd3a29
1 changed files with 2 additions and 4 deletions

View File

@ -61,8 +61,6 @@ EOF
echo " Done" echo " Done"
echo " Done"
. /usr/lib/alternc/functions.sh . /usr/lib/alternc/functions.sh
echo "giving write access to roundcube to the email password ..." echo "giving write access to roundcube to the email password ..."
@ -78,8 +76,8 @@ EOF
echo "Migrating old webmail domaine type to roundcube one:" echo "Migrating old webmail domaine type to roundcube one:"
# migration of the "webmail" hosts to "roundcube" hosts: # migration of the "webmail" hosts to "roundcube" hosts:
mysql_query "INSERT IGNORE INTO sub_domaines (compte, domaine, sub, valeur, type, web_action, web_result, enable) SELECT compte, domaine, sub, valeur,'roundcube', 'UPDATE',0, enable FROM sub_domaines WHERE type='webmail' AND web_action='OK';" mysql_query "INSERT IGNORE INTO sub_domaines (compte, domaine, sub, valeur, type, web_action, web_result, enable) SELECT compte, domaine, sub, valeur,'roundcube', 'UPDATE',0, enable FROM sub_domaines WHERE type='WEBMAIL';"
mysql_query "UPDATE sub_domaines SET web_action='DELETE' WHERE type='webmail' AND web_action='OK';" mysql_query "UPDATE sub_domaines SET web_action='DELETE' WHERE type='WEBMAIL';"
echo " Done" echo " Done"
echo "Deconfiguring javascript-common alias" echo "Deconfiguring javascript-common alias"