From a084c3042b25d50e8ac1f8e69775dd4e99d0f327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 22 Mar 2024 00:10:35 +0100 Subject: [PATCH] Set group to admin --- scripts/install | 7 +++++++ scripts/restore | 7 +++++++ scripts/upgrade | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/scripts/install b/scripts/install index f42dda9..c09a1be 100644 --- a/scripts/install +++ b/scripts/install @@ -17,6 +17,13 @@ ynh_use_nodejs ynh_exec_warn_less "$ynh_npm" install -g configurable-http-proxy +#================================================= +# SET ADMIN GROUP +#================================================= +ynh_script_progression --message="Adding $admin to $app's group..." --weight=5 + +usermod -a -G "$app" "$admin" + #================================================= # BUILD APP #================================================= diff --git a/scripts/restore b/scripts/restore index 741562e..dcaec30 100644 --- a/scripts/restore +++ b/scripts/restore @@ -18,6 +18,13 @@ ynh_use_nodejs ynh_exec_warn_less "$ynh_npm" install -g configurable-http-proxy +#================================================= +# SET ADMIN GROUP +#================================================= +ynh_script_progression --message="Adding $admin to $app's group..." --weight=5 + +usermod -a -G "$app" "$admin" + #================================================= # RESTORE THE APP MAIN DIR #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 4a5e48e..17e1d57 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,6 +24,13 @@ ynh_use_nodejs ynh_exec_warn_less "$ynh_npm" install -g configurable-http-proxy +#================================================= +# SET ADMIN GROUP +#================================================= +ynh_script_progression --message="Adding $admin to $app's group..." --weight=5 + +usermod -a -G "$app" "$admin" + #================================================= # BUILD APP #=================================================