mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #676 from YunoHost/fix_ynh_app_setting
[fix] ynh_app_setting_get and ynh_app_setting_delete don't have a fou…
This commit is contained in:
commit
2c9d1b442d
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ ynh_app_setting_delete() {
|
||||||
#
|
#
|
||||||
ynh_app_setting()
|
ynh_app_setting()
|
||||||
{
|
{
|
||||||
ACTION="$1" APP="$2" KEY="$3" VALUE="$4" python - <<EOF
|
ACTION="$1" APP="$2" KEY="$3" VALUE="${4:-}" python - <<EOF
|
||||||
import os, yaml
|
import os, yaml
|
||||||
app, action = os.environ['APP'], os.environ['ACTION'].lower()
|
app, action = os.environ['APP'], os.environ['ACTION'].lower()
|
||||||
key, value = os.environ['KEY'], os.environ.get('VALUE', None)
|
key, value = os.environ['KEY'], os.environ.get('VALUE', None)
|
||||||
|
|
Loading…
Add table
Reference in a new issue