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 (if not existing)

This commit is contained in:
vincentux 2020-06-11 18:11:04 +02:00 committed by GitHub
parent ee35597ed6
commit a7ea7833fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,12 @@ port=$(ynh_app_setting_get "$app" port)
arch=$(ynh_app_setting_get "$app" arch) arch=$(ynh_app_setting_get "$app" arch)
admin=$(ynh_app_setting_get "$app" admin) admin=$(ynh_app_setting_get "$app" admin)
# CREATE DEDICATED USER
ynh_script_progression --message="Making sure dedicated system user exists..."
# Create a dedicated user (if not existing)
ynh_system_user_create --username=$app
REMOVE_DUNITER REMOVE_DUNITER
INSTALL_DUNITER_DEBIAN_PACKAGE INSTALL_DUNITER_DEBIAN_PACKAGE
CONFIGURE_DUNITER CONFIGURE_DUNITER