mirror of
https://github.com/YunoHost-Apps/dokuwiki_ynh.git
synced 2024-09-03 18:26:20 +02:00
[enh] Prepare upgrade for multisite
This commit is contained in:
parent
5c585b00ab
commit
f559ac5728
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
APP=`echo -n doku;echo wiki`
|
||||||
domain=$(sudo yunohost app setting dokuwiki domain)
|
domain=$(sudo yunohost app setting dokuwiki domain)
|
||||||
path=$(sudo yunohost app setting dokuwiki path)
|
path=$(sudo yunohost app setting dokuwiki path)
|
||||||
admin=$(sudo yunohost app setting dokuwiki admin)
|
admin=$(sudo yunohost app setting dokuwiki admin)
|
||||||
|
@ -16,13 +16,13 @@ fi
|
||||||
path=${path%/}
|
path=${path%/}
|
||||||
|
|
||||||
# Modify dokuwiki conf
|
# 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
|
# Copy files to the right place
|
||||||
final_path=/var/www/dokuwiki
|
final_path=/var/www/dokuwiki
|
||||||
sudo mkdir -p $final_path
|
sudo mkdir -p $final_path
|
||||||
sudo cp -a ../sources/* $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
|
sudo cp ../conf/acl.auth.php $final_path/conf
|
||||||
|
|
||||||
# Files owned by root, www-data can just read
|
# Files owned by root, www-data can just read
|
||||||
|
|
Loading…
Add table
Reference in a new issue