mirror of
https://github.com/YunoHost-Apps/dokuwiki_ynh.git
synced 2024-09-03 18:26:20 +02:00
[enh] remove duplicate code block
This commit is contained in:
parent
46f3fd4c10
commit
257acb2b4d
1 changed files with 2 additions and 9 deletions
|
@ -101,19 +101,12 @@ if [ ! -f "$final_path/conf/acl.auth.php" ]; then
|
||||||
cp ../conf/acl.auth.php $final_path/conf
|
cp ../conf/acl.auth.php $final_path/conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# For securing DokuWiki installation, create default files that will be writable in the "conf" folder.
|
# For securing DokuWiki installation, create default files that will be writable in the "conf" folder.
|
||||||
# Other files will be read ony and owned by root.
|
# Other files will be read ony and owned by root.
|
||||||
# See https://www.dokuwiki.org/install:permissions
|
# See https://www.dokuwiki.org/install:permissions
|
||||||
|
|
||||||
# Create file if it does not exist
|
|
||||||
if [ ! -f "$final_path/conf/local.protected.php" ]; then
|
|
||||||
# Set the default "admin"
|
|
||||||
# Replace string in order to have a functionnal configuration file
|
|
||||||
ynh_replace_string "__YNH_ADMIN_USER__" "$admin" "../conf/local.protected.php"
|
|
||||||
|
|
||||||
cp ../conf/local.protected.php $final_path/conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If file does not exists
|
# If file does not exists
|
||||||
if [ ! -f "$final_path/conf/local.php.bak" ]; then
|
if [ ! -f "$final_path/conf/local.php.bak" ]; then
|
||||||
# if template exists
|
# if template exists
|
||||||
|
|
Loading…
Add table
Reference in a new issue