1
0
Fork 0
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:
Florent 2024-03-10 22:05:42 +01:00 committed by Florent F
parent dc6c37b671
commit fb26fdf43c
3 changed files with 12 additions and 0 deletions

View file

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

View file

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

View file

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