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

Fix linter and upgrade to 3.14

This commit is contained in:
Josué Tille 2022-10-24 11:05:10 +02:00
parent 7e51ef2862
commit 84e8fbe621
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
5 changed files with 3 additions and 19 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=http://www.monitorix.org/monitorix_3.13.1-izzy1_all.deb
SOURCE_SUM=17a48021c46bf5656caeacbcf2da6bff63816496bf1d4f4926daa64c76a4733f
SOURCE_URL=http://www.monitorix.org/monitorix_3.14.0-izzy1_all.deb
SOURCE_SUM=b05e776f425a8b8873c8851b7e1861cefe23e512
# (Optional) Program to check the integrity (sha256sum, md5sum...)
# default: sha256
SOURCE_SUM_PRG=sha256sum

View file

@ -14,7 +14,7 @@
"email": "josue@familletille.ch"
},
"requirements": {
"yunohost": ">= 3.5.2.2"
"yunohost": ">= 4.1.2"
},
"multi_instance": false,
"services": [
@ -26,19 +26,11 @@
{
"name": "domain",
"type": "domain",
"ask": {
"en": "Choose a domain name for Monitorix",
"fr": "Choisissez un nom de domaine pour Monitorix"
},
"example": "example.com"
},
{
"name": "path",
"type": "path",
"ask": {
"en": "Choose a path for Monitorix",
"fr": "Choisissez un chemin pour Monitorix"
},
"example": "/monitorix",
"default": "/monitorix"
}

View file

@ -20,8 +20,6 @@ ynh_script_progression --message="Validating installation parameters..."
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
# Check domain/path availability
test $(ynh_webpath_available --domain $domain --path_url $path_url) == 'True' || ynh_die --message "$domain$path_url is not available, please use an other domain or path."
ynh_webpath_register $app $domain $path_url
# Find a port for built-in monitorix HTTP server

View file

@ -4,9 +4,6 @@
# GENERIC START
#=================================================
# Stop script if errors
set -u
# Import common cmd
source ./experimental_helper.sh
source ./_common.sh

View file

@ -20,9 +20,6 @@ ynh_script_progression --message="Loading settings..."
domain=$(ynh_app_setting_get --app $app --key domain)
path_url=$(ynh_normalize_url_path --path_url $(ynh_app_setting_get --app $app --key path))
# Check domain/path availability
ynh_webpath_available --domain $domain --path_url $path_url || ynh_die --message "$domain/$path_url is not available, please use an other domain or path."
#=================================================
# STANDARD RESTORATION STEPS
#=================================================