mirror of
https://github.com/YunoHost-Apps/syncthing_ynh.git
synced 2024-09-03 20:26:23 +02:00
swicth to CREATE DEDICATED USER
This commit is contained in:
parent
8656e21f00
commit
d90907e81a
1 changed files with 7 additions and 2 deletions
|
@ -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/
|
||||
|
|
Loading…
Add table
Reference in a new issue