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