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