From c108e3f199a62889268b032f4b7d1f7219c99ffe Mon Sep 17 00:00:00 2001 From: Zamentur aka ljf Date: Mon, 7 Sep 2015 14:21:42 +0200 Subject: [PATCH] [enh] Prepare for multisite --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 5e854f0..74fd2e4 100755 --- a/scripts/install +++ b/scripts/install @@ -1,5 +1,5 @@ #!/bin/bash - +APP=`echo -n doku; echo wiki` # Retrieve arguments domain=$1 path=$2 @@ -17,13 +17,13 @@ if [[ ! $? -eq 0 ]]; then fi # Modify dokuwiki conf -sed -i "s@YNH_ADMIN_USER@$admin@g" ../conf/dokuwiki.php +sed -i "s@YNH_ADMIN_USER@$admin@g" ../conf/$APP.php # Copy files to the right place final_path=/var/www/dokuwiki sudo mkdir -p $final_path sudo cp -a ../sources/* $final_path -sudo cp ../conf/dokuwiki.php $final_path/conf +sudo cp ../conf/$APP.php $final_path/conf sudo cp ../conf/acl.auth.php $final_path/conf # Files owned by root, www-data can just read