diff --git a/scripts/backup b/scripts/backup index 199209a..f77e44c 100755 --- a/scripts/backup +++ b/scripts/backup @@ -56,9 +56,9 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/systemd/system/$app.service" #================================================= -# BACKUP THE POSTGRESQL DATABASE +# BACKUP THE DATABASE #================================================= -ynh_print_info --message="Backing up the PostgreSQL database..." +ynh_print_info --message="Backing up the database..." ynh_psql_dump_db --database="$db_name" > db.sql diff --git a/scripts/install b/scripts/install index 16aea8e..9a6bbe6 100755 --- a/scripts/install +++ b/scripts/install @@ -27,7 +27,6 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC -salt=$(ynh_string_random --length=16) app=$YNH_APP_INSTANCE_NAME @@ -122,8 +121,8 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="../conf/.env" --destination="$final_path/.env" -#chmod 650 "$final_path/.env" -#chown $app:$app "$final_path/.env" +chmod 650 "$final_path/.env" +chown $app:$app "$final_path/.env" #================================================= # CONFIGURE THE APP diff --git a/scripts/upgrade b/scripts/upgrade index 1464a37..c1eefc2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -20,7 +20,6 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) port=$(ynh_app_setting_get --app=$app --key=port) final_path=$(ynh_app_setting_get --app=$app --key=final_path) -db_name=$(ynh_app_setting_get --app=$app --key=db_name) #================================================= # CHECK VERSION