mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
commit
4781cfed11
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue