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 #=================================================