From 38ec4e508c94cd550bf07eaa7cc0debd163b5eae Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 20 Mar 2023 16:03:34 +0100 Subject: [PATCH] Fix app.src / ynh_setup_source usage --- conf/app.src | 15 +-------------- scripts/_common.sh | 2 +- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/conf/app.src b/conf/app.src index 9060061..e14d54c 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,17 +1,4 @@ SOURCE_URL=https://www.monitorix.org/monitorix_3.15.0-izzy1_all.deb SOURCE_SUM=0d960b9433ecbaba38d9befe27163644886fb5a466d44f5380576ca975b9d8e4 -# (Optional) Program to check the integrity (sha256sum, md5sum...) -# default: sha256 -SOURCE_SUM_PRG=sha256sum -# (Optional) Archive format -# default: tar.gz SOURCE_FORMAT=deb -# (Optional) Put false if sources are directly in the archive root -# default: true -# Instead of true, SOURCE_IN_SUBDIR could be the number of sub directories -# to remove. -SOURCE_IN_SUBDIR=false -# (Optional) If it set as false don't extract the source. -# (Useful to get a debian package or a python wheel.) -# default: true -SOURCE_EXTRACT=false +SOURCE_FILENAME=monitorix.deb diff --git a/scripts/_common.sh b/scripts/_common.sh index 7c64a2a..a5f2b46 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -17,7 +17,7 @@ get_install_source() { ynh_setup_source --dest_dir /tmp ynh_package_update - dpkg --force-confdef --force-confold -i /tmp/app.deb + dpkg --force-confdef --force-confold -i /tmp/monitorix.deb ynh_secure_remove --file=/etc/monitorix/conf.d/00-debian.conf ynh_package_install -f }