mirror of
https://github.com/YunoHost-Apps/limesurvey_ynh.git
synced 2024-09-03 19:36:32 +02:00
[fix] Use setting helpers
This commit is contained in:
parent
96e0301040
commit
35f597a5df
4 changed files with 13 additions and 13 deletions
|
@ -258,10 +258,10 @@ ynh_set_default_perm () {
|
|||
|
||||
}
|
||||
ynh_sso_access () {
|
||||
sudo yunohost app setting $app unprotected_uris -v "/"
|
||||
ynh_app_setting_set $app unprotected_uris -v "/"
|
||||
|
||||
if [[ $is_public -eq 0 ]]; then
|
||||
sudo yunohost app setting $app protected_uris -v "$1"
|
||||
ynh_app_setting_set $app protected_uris -v "$1"
|
||||
fi
|
||||
sudo yunohost app ssowatconf
|
||||
}
|
||||
|
|
|
@ -10,9 +10,9 @@ set -e
|
|||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
# Retrieve arguments
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
path=$(sudo yunohost app setting $app path)
|
||||
local_path=$(sudo yunohost app setting $app local_path)
|
||||
domain=$(ynh_app_setting_get $app domain)
|
||||
path=$(ynh_app_setting_get $app path)
|
||||
local_path=$(ynh_app_setting_get $app local_path)
|
||||
|
||||
# Copy the app files
|
||||
ynh_backup "$local_path" "sources"
|
||||
|
|
|
@ -4,7 +4,7 @@ source _common.sh
|
|||
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
user=$app
|
||||
local_path=$(sudo yunohost app setting $app local_path)
|
||||
local_path=$(ynh_app_setting_get $app local_path)
|
||||
domain=$(ynh_app_setting_get $app domain)
|
||||
|
||||
ynh_mysql_remove_db "$user" "$app"
|
||||
|
|
|
@ -7,13 +7,13 @@ ynh_trap_on
|
|||
export app=$YNH_APP_INSTANCE_NAME
|
||||
user=$app
|
||||
|
||||
export domain=$(sudo yunohost app setting $app domain)
|
||||
export path=$(sudo yunohost app setting $app path)
|
||||
export admin=$(sudo yunohost app setting $app admin)
|
||||
db_pwd=$(sudo yunohost app setting $app mysqlpwd)
|
||||
export local_path=$(sudo yunohost app setting $app local_path)
|
||||
export is_public=$(sudo yunohost app setting $app is_public || echo 0)
|
||||
export prefix=$(sudo yunohost app setting $app prefix || echo 'prefix_')
|
||||
export domain=$(ynh_app_setting_get $app domain)
|
||||
export path=$(ynh_app_setting_get $app path)
|
||||
export admin=$(ynh_app_setting_get $app admin)
|
||||
db_pwd=$(ynh_app_setting_get $app mysqlpwd)
|
||||
export local_path=$(ynh_app_setting_get $app local_path)
|
||||
export is_public=$(ynh_app_setting_get $app is_public || echo 0)
|
||||
export prefix=$(ynh_app_setting_get $app prefix || echo 'prefix_')
|
||||
version=$(ynh_read_json "/etc/yunohost/apps/$app/manifest.json" 'version' 2> /dev/null || echo '2.0.5')
|
||||
last_version=$(ynh_read_manifest 'version')
|
||||
|
||||
|
|
Loading…
Reference in a new issue