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, ...
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
# Retrieve arguments
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path=$YNH_APP_ARG_PATH
|
||||
admin=$YNH_APP_ARG_ADMIN
|
||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||
# Retrieve app settings
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
path=$(sudo yunohost app setting $app path)
|
||||
admin=$(sudo yunohost app setting $app admin)
|
||||
is_public=$(sudo yunohost app setting $app is_public)
|
||||
|
||||
# Remove trailing slash to path
|
||||
path=${path%/}
|
||||
|
|
Loading…
Add table
Reference in a new issue