From 719128879eb91a28a71f3fbb16309c1b78a14447 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 19 Jul 2021 10:40:09 +0200 Subject: [PATCH] Fix --- check_process | 2 +- manifest.json | 4 ++-- scripts/backup | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/check_process b/check_process index 8a4c77d..5cec907 100644 --- a/check_process +++ b/check_process @@ -4,7 +4,7 @@ path="/path" admin="john" is_public=1 - password="pass" + password="password" ; Checks pkg_linter=1 setup_sub_dir=1 diff --git a/manifest.json b/manifest.json index 3f180cc..dd2ffdb 100644 --- a/manifest.json +++ b/manifest.json @@ -3,8 +3,8 @@ "id": "cheky", "packaging_format": 1, "description": { - "en": "Monitors French classifieds websites LeBonCoin and SeLoger.", - "fr": "Surveille pour vous LeBonCoin et SeLoger." + "en": "Monitors French classifieds websites LeBonCoin and SeLoger", + "fr": "Surveille pour vous LeBonCoin et SeLoger" }, "version": "4.4.1~ynh4", "url": "https://www.cheky.net", diff --git a/scripts/backup b/scripts/backup index 9f6005d..0dbb3dd 100644 --- a/scripts/backup +++ b/scripts/backup @@ -23,9 +23,9 @@ ynh_print_info "Loading installation settings..." app=$YNH_APP_INSTANCE_NAME -final_path=$(ynh_app_setting_get $app final_path) -domain=$(ynh_app_setting_get $app domain) -db_name=$(ynh_app_setting_get $app db_name) +final_path=$(ynh_app_setting_get --app=$app --key=final_path) +domain=$(ynh_app_setting_get --app=$app --key=domain) +db_name=$(ynh_app_setting_get --app=$app --key=db_name) phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= @@ -37,32 +37,32 @@ ynh_print_info --message="Declaring files to be backed up..." # BACKUP THE APP MAIN DIR #================================================= -ynh_backup "$final_path" +ynh_backup --src_path="$final_path" #================================================= # BACKUP THE NGINX CONFIGURATION #================================================= -ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" +ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # BACKUP THE PHP-FPM CONFIGURATION #================================================= -ynh_backup "/etc/php/$phpversion/fpm/pool.d/$app.conf" +ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" #================================================= # BACKUP THE MYSQL DATABASE #================================================= ynh_print_info "Backing up the MySQL database..." -ynh_mysql_dump_db "$db_name" > db.sql +ynh_mysql_dump_db --database="$db_name" > db.sql #================================================= # BACKUP A CRON FILE #================================================= -ynh_backup "/etc/cron.d/$app" +ynh_backup --src_path="/etc/cron.d/$app" #================================================= # END OF SCRIPT