Set database password on friendica restore
This commit is contained in:
parent
309479ee1c
commit
c1cf74c0d4
|
@ -252,6 +252,11 @@ function restore_local_friendica {
|
|||
if [ -d $temp_restore_dir ]; then
|
||||
rm -rf $temp_restore_dir
|
||||
fi
|
||||
|
||||
MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
|
||||
FRIENDICA_PATH=/var/www/$FRIENDICA_DOMAIN_NAME/htdocs
|
||||
sed -i "s|\$db_pass =.*|\$db_pass = '${MARIADB_PASSWORD}';|g" $FRIENDICA_PATH/.htconfig.php
|
||||
MARIADB_PASSWORD=
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -287,6 +292,11 @@ function restore_remote_friendica {
|
|||
if [ -d /root/tempfriendica ]; then
|
||||
rm -rf /root/tempfriendica
|
||||
fi
|
||||
|
||||
MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
|
||||
FRIENDICA_PATH=/var/www/$FRIENDICA_DOMAIN_NAME/htdocs
|
||||
sed -i "s|\$db_pass =.*|\$db_pass = '${MARIADB_PASSWORD}';|g" $FRIENDICA_PATH/.htconfig.php
|
||||
MARIADB_PASSWORD=
|
||||
}
|
||||
|
||||
function remove_friendica {
|
||||
|
|
Loading…
Reference in New Issue