mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Reduce the noise in logs because of ynh_app_setting
This commit is contained in:
parent
00508c9698
commit
ac4b62cebc
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,7 @@ ynh_app_setting_delete() {
|
||||||
#
|
#
|
||||||
ynh_app_setting()
|
ynh_app_setting()
|
||||||
{
|
{
|
||||||
|
set +o xtrace # set +x
|
||||||
ACTION="$1" APP="$2" KEY="$3" VALUE="${4:-}" python2.7 - <<EOF
|
ACTION="$1" APP="$2" KEY="$3" VALUE="${4:-}" python2.7 - <<EOF
|
||||||
import os, yaml, sys
|
import os, yaml, sys
|
||||||
app, action = os.environ['APP'], os.environ['ACTION'].lower()
|
app, action = os.environ['APP'], os.environ['ACTION'].lower()
|
||||||
|
@ -102,6 +103,7 @@ else:
|
||||||
with open(setting_file, "w") as f:
|
with open(setting_file, "w") as f:
|
||||||
yaml.safe_dump(settings, f, default_flow_style=False)
|
yaml.safe_dump(settings, f, default_flow_style=False)
|
||||||
EOF
|
EOF
|
||||||
|
set -o xtrace # set -x
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check availability of a web path
|
# Check availability of a web path
|
||||||
|
|
Loading…
Add table
Reference in a new issue