Free variable after use
This commit is contained in:
parent
e14f250be2
commit
f99ed7f79f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue