diff --git a/src/freedombone-app-hubzilla b/src/freedombone-app-hubzilla index 687ae55c..8bf80802 100755 --- a/src/freedombone-app-hubzilla +++ b/src/freedombone-app-hubzilla @@ -13,7 +13,7 @@ # License # ======= # -# Copyright (C) 2014-2016 Bob Mottram +# Copyright (C) 2014-2017 Bob Mottram # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -243,6 +243,11 @@ function restore_local_hubzilla { if [ -d $temp_restore_dir ]; then rm -rf $temp_restore_dir fi + + MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb) + HUBZILLA_PATH=/var/www/$HUBZILLA_DOMAIN_NAME/htdocs + sed -i "s|\$db_pass =.*|\$db_pass = '${MARIADB_PASSWORD}';|g" $HUBZILLA_PATH/.htconfig.php + MARIADB_PASSWORD= fi } @@ -278,6 +283,11 @@ function restore_remote_hubzilla { if [ -d /root/temphubzilla ]; then rm -rf /root/temphubzilla fi + + MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb) + HUBZILLA_PATH=/var/www/$HUBZILLA_DOMAIN_NAME/htdocs + sed -i "s|\$db_pass =.*|\$db_pass = '${MARIADB_PASSWORD}';|g" $HUBZILLA_PATH/.htconfig.php + MARIADB_PASSWORD= } function remove_hubzilla {