From 4ba2c8b23077e64f4da926bbce82a2708497d542 Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Mon, 4 Jul 2022 17:41:51 +0530 Subject: [PATCH] switch up order --- scripts/install | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index abb873b..ce727ca 100755 --- a/scripts/install +++ b/scripts/install @@ -61,6 +61,14 @@ ynh_app_setting_set --app=$app --key=port --value=$port # ynh_script_progression --message="Configuring firewall..." --time --weight=1 # ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port +#================================================= +# CREATE DEDICATED USER +#================================================= +ynh_script_progression --message="Configuring system user..." --time --weight=1 + +# Create a system user +ynh_system_user_create --username=$app --home_dir="$final_path" + #================================================= # INSTALL DEPENDENCIES #================================================= @@ -75,15 +83,6 @@ ynh_setup_source --dest_dir="/opt/dotnet" --source_id=$YNH_ARCH ln -s /opt/dotnet/dotnet /usr/bin -#================================================= -# CREATE DEDICATED USER -#================================================= -ynh_script_progression --message="Configuring system user..." --time --weight=1 - -# Create a system user -ynh_system_user_create --username=$app --home_dir="$final_path" - - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================