Free variable after use

This commit is contained in:
Bob Mottram 2017-06-25 17:30:50 +01:00
parent e14f250be2
commit f99ed7f79f
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ function gnusocial_update_after_restore {
# Ensure that the database password is correct # Ensure that the database password is correct
MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb) MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
sed -i "s|\$config['db']['database'].*|\$config['db']['database'] = 'mysqli://root:${MARIADB_PASSWORD}@localhost/${gnusocial_variant}';|g" config.php sed -i "s|\$config['db']['database'].*|\$config['db']['database'] = 'mysqli://root:${MARIADB_PASSWORD}@localhost/${gnusocial_variant}';|g" config.php
MARIADB_PASSWORD=
# Set permissions # Set permissions
chmod g+w /var/www/$gnusocial_domain/htdocs chmod g+w /var/www/$gnusocial_domain/htdocs