From 257acb2b4db0038c3dba1c54cb1bbefd29a1c3ef Mon Sep 17 00:00:00 2001 From: Gofannon Date: Sat, 8 Sep 2018 21:02:41 +0200 Subject: [PATCH] [enh] remove duplicate code block --- scripts/upgrade | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 827c77f..be69724 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -101,19 +101,12 @@ if [ ! -f "$final_path/conf/acl.auth.php" ]; then cp ../conf/acl.auth.php $final_path/conf fi + + # 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. # 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 [ ! -f "$final_path/conf/local.php.bak" ]; then # if template exists