1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monitorix_ynh.git synced 2024-09-03 19:46:06 +02:00

Fix app.src / ynh_setup_source usage

This commit is contained in:
Alexandre Aubin 2023-03-20 16:03:34 +01:00
parent 4aa897ccfe
commit 38ec4e508c
2 changed files with 2 additions and 15 deletions

View file

@ -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

View file

@ -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
}