mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Add a ynh_app_setting_delete helper
This commit is contained in:
parent
d041a5f264
commit
ea05562c79
1 changed files with 9 additions and 0 deletions
|
@ -16,3 +16,12 @@ ynh_app_setting_get() {
|
||||||
ynh_app_setting_set() {
|
ynh_app_setting_set() {
|
||||||
sudo yunohost app setting "$1" "$2" -v "$3"
|
sudo yunohost app setting "$1" "$2" -v "$3"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue