1
0
Fork 0
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:
vincentux 2020-06-11 18:01:26 +02:00 committed by GitHub
parent ee35597ed6
commit 354d2a1e11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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