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

refactor admin permission (move in install script & clean in upgrade)

This commit is contained in:
Gofannon 2022-08-18 23:57:11 +02:00
parent f1d843f6ca
commit 0473c71a35
2 changed files with 3 additions and 5 deletions

View file

@ -117,8 +117,6 @@ ynh_script_progression --message="Configuring DokuWiki..." --weight=2
# This File cannot be modified directly by DokuWiki, only by hand or by YunoHost
# It will only be updated by YunoHost package or directly by adventurous users
# Create the "admin" group and add the "admin" user
ynh_permission_create --permission "admin" --allowed "$admin_user"
# Customize admin group in case of multiple wiki install managed by different admins
# dokuwiki.admin; dokuwiki__1.admin; etc
@ -221,6 +219,9 @@ ynh_add_fail2ban_config --logpath="/var/log/nginx/$domain-error.log" --failregex
#=================================================
ynh_script_progression --message="Configuring permissions..." --weight=2
# Create the "admin" permission and add the "admin_user" to it
ynh_permission_create --permission "admin" --allowed "$admin_user"
# Make app public if necessary
if [ $is_public -eq 1 ]
then

View file

@ -317,9 +317,6 @@ ynh_backup_if_checksum_is_different --file="$final_path/conf/local.protected.php
# Always overwrite local file with the one from package.
cp ../conf/local.protected.php $final_path/conf
# Create the "admin" group and add the "admin" user
#ynh_permission_create --permission "admin" --allowed "$admin_user"
# Customize admin group in case of multiple wiki install managed by different admins
# dokuwiki.admin; dokuwiki__1.admin; etc
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/conf/local.protected.php"