diff --git a/scripts/backup b/scripts/backup index 884ac2f..634b63d 100755 --- a/scripts/backup +++ b/scripts/backup @@ -58,7 +58,7 @@ ynh_backup "/etc/php5/fpm/conf.d/20-$app.ini" # BACKUP THE POSTGRESQL DATABASE #================================================= -ynh_psql_dump_db "$db_name" > /db.sql +ynh_psql_dump_db "$db_name" > db.sql #================================================= # SPECIFIC BACKUP diff --git a/scripts/restore b/scripts/restore index 6bf31b4..920199d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -33,7 +33,7 @@ domain=$(ynh_app_setting_get $app domain) path_url=$(ynh_app_setting_get $app path) final_path=$(ynh_app_setting_get $app final_path) db_name=$(ynh_app_setting_get $app db_name) -db_name=$(ynh_app_setting_get $app db_pwd) +db_pwd=$(ynh_app_setting_get $app db_pwd) #================================================= # CHECK IF THE APP CAN BE RESTORED