[fix] Backport fixes from my old dev branch.

This commit is contained in:
pitchum
2018-12-02 13:02:39 +01:00
parent e86d83049e
commit 4929faf2be
4 changed files with 59 additions and 32 deletions

View File

@@ -1,21 +1,13 @@
#!/bin/bash
#=================================================
# GENERIC START
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source /usr/share/yunohost/helpers
source _common.sh
ynh_setting() {
app=${1}
setting=${2}
sudo grep "^${setting}:" "/etc/yunohost/apps/${app}/settings.yml" | sed s/^[^:]\\+:\\s*[\"\']\\?// | sed s/\\s*[\"\']\$//
}
source /usr/share/yunohost/helpers
#=================================================
# LOAD SETTINGS