mirror of
https://github.com/YunoHost-Apps/dokuwiki_ynh.git
synced 2024-09-03 18:26:20 +02:00
[fix] Retrieve app settings in upgrade script
This commit is contained in:
parent
6137c275cc
commit
e43a26b954
1 changed files with 5 additions and 5 deletions
10
scripts/upgrade
Normal file → Executable file
10
scripts/upgrade
Normal file → Executable file
|
@ -15,11 +15,11 @@ set -e
|
||||||
# db names, ...
|
# db names, ...
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve app settings
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$(sudo yunohost app setting $app domain)
|
||||||
path=$YNH_APP_ARG_PATH
|
path=$(sudo yunohost app setting $app path)
|
||||||
admin=$YNH_APP_ARG_ADMIN
|
admin=$(sudo yunohost app setting $app admin)
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$(sudo yunohost app setting $app is_public)
|
||||||
|
|
||||||
# Remove trailing slash to path
|
# Remove trailing slash to path
|
||||||
path=${path%/}
|
path=${path%/}
|
||||||
|
|
Loading…
Add table
Reference in a new issue