From d90907e81aecd34a9bc39b4a60c8213dd08a84e6 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 13 Apr 2019 16:37:10 +0200 Subject: [PATCH] swicth to CREATE DEDICATED USER --- scripts/install | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index b8f610d..4a50929 100644 --- a/scripts/install +++ b/scripts/install @@ -84,8 +84,13 @@ fi ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $SYNCPORT ynh_app_setting_set $app syncport $SYNCPORT -# Create $SYNCUSER user to run syncthing service -sudo useradd -m -d $SYNCHOME/ -s /bin/bash $SYNCUSER +#================================================= +# CREATE DEDICATED USER +#================================================= +ynh_print_info "Configuring system user..." + +# Create a system user +ynh_system_user_create --username=$SYNCUSER --home_dir=$SYNCHOME/ --use_shell # Make directories and set rights sudo chown -R $SYNCUSER:$SYNCUSER $SYNCHOME/