1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

Merge pull request #82 from vincentux/patch-3

Create Dedicated User
This commit is contained in:
Éric Gaspar 2021-11-25 19:06:20 +01:00 committed by GitHub
commit 4781cfed11
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}"
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
arch=$(uname -m)
@ -52,7 +57,7 @@ CONFIGURE_DUNITER
systemctl start duniter
# 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_PERMISSIONS
CONFIG_NGINX