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:
parent
f1d843f6ca
commit
0473c71a35
2 changed files with 3 additions and 5 deletions
|
@ -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
|
# 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
|
# 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
|
# Customize admin group in case of multiple wiki install managed by different admins
|
||||||
# dokuwiki.admin; dokuwiki__1.admin; etc
|
# 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
|
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
|
# Make app public if necessary
|
||||||
if [ $is_public -eq 1 ]
|
if [ $is_public -eq 1 ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -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.
|
# Always overwrite local file with the one from package.
|
||||||
cp ../conf/local.protected.php $final_path/conf
|
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
|
# Customize admin group in case of multiple wiki install managed by different admins
|
||||||
# dokuwiki.admin; dokuwiki__1.admin; etc
|
# dokuwiki.admin; dokuwiki__1.admin; etc
|
||||||
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/conf/local.protected.php"
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/conf/local.protected.php"
|
||||||
|
|
Loading…
Add table
Reference in a new issue