mirror of
https://github.com/YunoHost-Apps/dokuwiki_ynh.git
synced 2024-09-03 18:26:20 +02:00
[fix] Missing upgrade script for multi-instance.
This commit is contained in:
commit
25e1fda7a2
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
APP=`echo -n doku;echo wiki`
|
||||
domain=$(sudo yunohost app setting dokuwiki domain)
|
||||
path=$(sudo yunohost app setting dokuwiki path)
|
||||
admin=$(sudo yunohost app setting dokuwiki admin)
|
||||
|
@ -16,13 +16,13 @@ fi
|
|||
path=${path%/}
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Add table
Reference in a new issue