mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
27 lines
726 B
Text
27 lines
726 B
Text
# Get an application setting
|
|
#
|
|
# usage: ynh_app_setting_get app key
|
|
# | arg: app - the application id
|
|
# | arg: key - the setting to get
|
|
ynh_app_setting_get() {
|
|
sudo yunohost app setting "$1" "$2" --output-as plain --quiet
|
|
}
|
|
|
|
# Set an application setting
|
|
#
|
|
# usage: ynh_app_setting_set app key value
|
|
# | arg: app - the application id
|
|
# | arg: key - the setting name to set
|
|
# | arg: value - the setting value to set
|
|
ynh_app_setting_set() {
|
|
sudo yunohost app setting "$1" "$2" -v "$3" --quiet
|
|
}
|
|
|
|
# Delete an application setting
|
|
#
|
|
# usage: ynh_app_setting_delete app key
|
|
# | arg: app - the application id
|
|
# | arg: key - the setting to delete
|
|
ynh_app_setting_delete() {
|
|
sudo yunohost app setting -d "$1" "$2" --quiet
|
|
}
|