From 9b65e3748104665532ad204f1f2341442a9e62dd Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 26 Sep 2021 20:59:26 +0200 Subject: [PATCH] Remove NodeJS --- check_process | 8 +------- manifest.json | 4 ++-- scripts/install | 8 -------- scripts/remove | 7 ++++--- scripts/restore | 6 ------ scripts/upgrade | 6 ------ 6 files changed, 7 insertions(+), 32 deletions(-) diff --git a/check_process b/check_process index 8e42659..28236c8 100644 --- a/check_process +++ b/check_process @@ -1,8 +1,3 @@ -# See here for more information -# https://github.com/YunoHost/package_check#syntax-check_process-file - -# Move this file from check_process.default to check_process when you have filled it. - ;; Test complet ; Manifest domain="domain.tld" @@ -16,10 +11,9 @@ setup_private=1 setup_public=1 upgrade=1 - upgrade=1 from_commit=CommitHash + #upgrade=1 from_commit=CommitHash backup_restore=1 multi_instance=1 - port_already_use=0 change_url=0 ;;; Options Email= diff --git a/manifest.json b/manifest.json index c1ae03c..9a122e7 100644 --- a/manifest.json +++ b/manifest.json @@ -3,8 +3,8 @@ "id": "cinny", "packaging_format": 1, "description": { - "en": "A Matrix client focusing primarily on simple, elegant and secure interface.", - "fr": "Un client matrix orienté simplicité, élégance et sécurité." + "en": "Matrix client focusing primarily on simple, elegant and secure interface", + "fr": "Client matrix orienté simplicité, élégance et sécurité" }, "version": "1.3.1~ynh1", "url": "https://cinny.in", diff --git a/scripts/install b/scripts/install index 1b8819b..76aeb4b 100755 --- a/scripts/install +++ b/scripts/install @@ -106,14 +106,6 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Configuring log rotation..." --weight=1 -### `ynh_use_logrotate` is used to configure a logrotate configuration for the logs of this app. -### Use this helper only if there is effectively a log file for this app. -### If you're not using this helper: -### - Remove the section "BACKUP LOGROTATE" in the backup script -### - Remove also the section "REMOVE LOGROTATE CONFIGURATION" in the remove script -### - As well as the section "RESTORE THE LOGROTATE CONFIGURATION" in the restore script -### - And the section "SETUP LOGROTATE" in the upgrade script - # Use logrotate to manage application logfile(s) ynh_use_logrotate diff --git a/scripts/remove b/scripts/remove index 16e3883..a9cb3b1 100755 --- a/scripts/remove +++ b/scripts/remove @@ -37,6 +37,7 @@ ynh_script_progression --message="Removing dependencies..." --weight=1 # Remove metapackage and its dependencies ynh_remove_app_dependencies +ynh_remove_nodejs #================================================= # REMOVE APP MAIN DIR @@ -57,10 +58,10 @@ ynh_remove_nginx_config #================================================= # REMOVE FAIL2BAN CONFIGURATION #================================================= -ynh_script_progression --message="Removing Fail2ban configuration..." --weight=1 +# ynh_script_progression --message="Removing Fail2ban configuration..." --weight=1 -# Remove the dedicated Fail2Ban config -ynh_remove_fail2ban_config +# # Remove the dedicated Fail2Ban config +# ynh_remove_fail2ban_config #================================================= # SPECIFIC REMOVE diff --git a/scripts/restore b/scripts/restore index 0ab384f..c78e253 100755 --- a/scripts/restore +++ b/scripts/restore @@ -60,12 +60,6 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$final_path" -# FIXME: this should be managed by the core in the future -# Here, as a packager, you may have to tweak the ownerhsip/permissions -# such that the appropriate users (e.g. maybe www-data) can access -# files in some cases. -# But FOR THE LOVE OF GOD, do not allow r/x for "others" on the entire folder - -# this will be treated as a security issue. chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index 03d7f16..403fb28 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -62,12 +62,6 @@ then ynh_setup_source --dest_dir="$final_path" fi -# FIXME: this should be managed by the core in the future -# Here, as a packager, you may have to tweak the ownerhsip/permissions -# such that the appropriate users (e.g. maybe www-data) can access -# files in some cases. -# But FOR THE LOVE OF GOD, do not allow r/x for "others" on the entire folder - -# this will be treated as a security issue. chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path"