From db7ed356ff87492aefc6e404bd05a59ae4a8f32d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 20 Mar 2024 21:29:29 +0100 Subject: [PATCH] Remove ugly old trick --- scripts/_common.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 56c9713..414f121 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -132,19 +132,13 @@ ynh_configure () { content="dbfilter = $db_name" else content="db_name = $db_name" - if [[ $app_version -gt 9 ]] - then + if [[ $app_version -gt 9 ]]; then content2="dbfilter = False" fi content3="list_db = False" fi - mkdir -p "$(dirname $DEST)" - if [ -f '../manifest.toml' ] ; then - ynh_add_config "${YNH_CWD}/../conf/$TEMPLATE" "$DEST" - else - ynh_add_config "${YNH_CWD}/../settings/conf/$TEMPLATE" "$DEST" - fi + ynh_add_config --template="$TEMPLATE" --destination="$DEST" } #=================================================