From 16b5faac8c230793de08734fdd2012ac9b15083b Mon Sep 17 00:00:00 2001 From: John Schmidt Date: Sat, 25 Feb 2023 15:38:10 -0800 Subject: [PATCH] Misc. fixes from Alex Signed-off-by: John Schmidt --- doc/{post_install.md => POST_INSTALL.md} | 0 doc/{post_install_fr.md => POST_INSTALL_fr.md} | 0 manifest.toml | 4 ++-- scripts/install | 4 +--- scripts/remove | 4 ++-- 5 files changed, 5 insertions(+), 7 deletions(-) rename doc/{post_install.md => POST_INSTALL.md} (100%) rename doc/{post_install_fr.md => POST_INSTALL_fr.md} (100%) diff --git a/doc/post_install.md b/doc/POST_INSTALL.md similarity index 100% rename from doc/post_install.md rename to doc/POST_INSTALL.md diff --git a/doc/post_install_fr.md b/doc/POST_INSTALL_fr.md similarity index 100% rename from doc/post_install_fr.md rename to doc/POST_INSTALL_fr.md diff --git a/manifest.toml b/manifest.toml index 1d3573b..61db184 100644 --- a/manifest.toml +++ b/manifest.toml @@ -33,8 +33,8 @@ ram.runtime = "110M" full_domain = true [install.init_main_permission] - help.en = "Required for sync with desktop app" - help.fr = "Nécessaire pour la synchronisation avec l'application desktop" + help.en = "Enabling visitors access is required for sync with desktop app" + help.fr = "Autoriser l'accès aux visiteurs est nécessaire pour la synchronisation avec l'application desktop" type = "group" default = "visitors" diff --git a/scripts/install b/scripts/install index 4029d6f..1aa8727 100644 --- a/scripts/install +++ b/scripts/install @@ -60,8 +60,6 @@ chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" -ynh_exec_as root echo ~$app - #================================================= # SPECIFIC SETUP #================================================= @@ -151,7 +149,7 @@ yunohost service add $app --description="Trilium Notes app" --log="systemd" #================================================= # ADD A CONFIGURATION #================================================= -ynh_script_progression --message="Adding a configuration file..." --weight=1 +ynh_script_progression --message="Adding a configuration file..." ### You can add specific configuration files. ### diff --git a/scripts/remove b/scripts/remove index 2d8e2cf..5f3ead0 100644 --- a/scripts/remove +++ b/scripts/remove @@ -28,14 +28,14 @@ source /usr/share/yunohost/helpers # REMOVE SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Removing system configurations related to $app..." --weight=60 +ynh_script_progression --message="Removing system configurations related to $app..." # This should be a symetric version of what happens in the install script # Remove the service from the list of services known by YunoHost (added from `yunohost service add`) if ynh_exec_warn_less yunohost service status $app >/dev/null then - ynh_script_progression --message="Removing $app service integration..." --weight=30 + ynh_script_progression --message="Removing $app service integration..." yunohost service remove $app fi