mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
CREATE DEDICATED USER
This commit is contained in:
parent
ee35597ed6
commit
354d2a1e11
1 changed files with 8 additions and 3 deletions
|
@ -24,8 +24,13 @@ if [[ ! $? -eq 0 ]]; then
|
||||||
ynh_die "Port not available: ${port}"
|
ynh_die "Port not available: ${port}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check the admin exists in YunoHost users
|
#=================================================
|
||||||
ynh_user_exists $admin
|
# CREATE DEDICATED USER
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Configuring system user..."
|
||||||
|
|
||||||
|
# Create a system user
|
||||||
|
ynh_system_user_create --username=$app --home_dir=$final_path
|
||||||
|
|
||||||
# Get CPU architecture and check it
|
# Get CPU architecture and check it
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
|
@ -54,7 +59,7 @@ duniter reset data > /dev/null
|
||||||
duniter webstart
|
duniter webstart
|
||||||
|
|
||||||
# Add Duniter service to the YunoHost monitoring
|
# Add Duniter service to the YunoHost monitoring
|
||||||
yunohost service add $app --log /root/.config/$app/"$app"_default/"$app".log
|
yunohost service add $app --log $USER/.config/$app/"$app"_default/"$app".log
|
||||||
|
|
||||||
CONFIG_SSOWAT
|
CONFIG_SSOWAT
|
||||||
CONFIG_NGINX
|
CONFIG_NGINX
|
||||||
|
|
Loading…
Add table
Reference in a new issue