mirror of
https://github.com/YunoHost-Apps/silverbullet_ynh.git
synced 2024-09-03 20:26:18 +02:00
add ynh_permission_update
This commit is contained in:
parent
dc6c37b671
commit
fb26fdf43c
3 changed files with 12 additions and 0 deletions
|
@ -35,6 +35,11 @@ ynh_add_config --template="custom.env" --destination="$data_dir/custom.env"
|
|||
chmod 600 "$data_dir/custom.env"
|
||||
chown "$app:$app" "$data_dir/custom.env"
|
||||
|
||||
#=================================================
|
||||
# SET PERMISSION FOR THE USER
|
||||
#=================================================
|
||||
ynh_permission_update --permission="main" --add="$admin"
|
||||
|
||||
#=================================================
|
||||
# SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -41,6 +41,8 @@ systemctl enable "$app.service" --quiet
|
|||
|
||||
yunohost service add "$app" --description="The hacker's notebook"
|
||||
|
||||
ynh_permission_update --permission="main" --add="$admin"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX AND PHP-FPM OR THE APP SERVICE
|
||||
#=================================================
|
||||
|
|
|
@ -40,6 +40,11 @@ ynh_add_config --template="custom.env" --destination="$data_dir/custom.env"
|
|||
chmod 600 "$data_dir/custom.env"
|
||||
chown "$app:$app" "$data_dir/custom.env"
|
||||
|
||||
#=================================================
|
||||
# SET PERMISSION FOR THE USER
|
||||
#=================================================
|
||||
ynh_permission_update --permission="main" --add="$admin"
|
||||
|
||||
#=================================================
|
||||
# REAPPLY SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue