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

Fix linter warnings

This commit is contained in:
ericgaspar 2021-09-26 23:28:14 +02:00
parent d50fb475b2
commit 31459bc357
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 10 additions and 13 deletions

View file

@ -3,9 +3,9 @@
"id": "kimai2", "id": "kimai2",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "A multi-user application for time-tracking with support for mobile devices", "en": "Multi-user application for time-tracking with support for mobile devices",
"fr": "Une application web de suivi du temps, multi-utilisateurs, et compatible avec les appareils mobiles", "fr": "Application web de suivi du temps, multi-utilisateurs, et compatible avec les appareils mobiles",
"de": "Eine web-basierte Mehrbenutzer-Zeiterfassung mit Rechnungsdruck mit Unterstützung für mobile Endgeräte", "de": "Web-basierte Mehrbenutzer-Zeiterfassung mit Rechnungsdruck mit Unterstützung für mobile Endgeräte",
"cs": "Víceuživatelská webová aplikace pro sledování času s podporou mobilních zařízení" "cs": "Víceuživatelská webová aplikace pro sledování času s podporou mobilních zařízení"
}, },
"version": "1.14.3~ynh1", "version": "1.14.3~ynh1",
@ -15,12 +15,12 @@
"name": "Anmol Sharma" "name": "Anmol Sharma"
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.0.0" "yunohost": ">= 4.2.4"
}, },
"multi_instance": true, "multi_instance": true,
"services": [ "services": [
"nginx", "nginx",
"php7.0-fpm", "php7.3-fpm",
"mysql" "mysql"
], ],
"arguments": { "arguments": {
@ -33,8 +33,7 @@
"fr": "Choisissez un nom de domaine pour Kimai2", "fr": "Choisissez un nom de domaine pour Kimai2",
"de": "Wählen Sie einen Domainnamen für Kimai2", "de": "Wählen Sie einen Domainnamen für Kimai2",
"cs": "Zvolte doménu pro Kimai2" "cs": "Zvolte doménu pro Kimai2"
}, }
"example": "kimai2.example.com"
}, },
{ {
"name": "admin", "name": "admin",
@ -44,8 +43,7 @@
"fr": "Choisissez ladministrateur (should be a YunoHost registered user).", "fr": "Choisissez ladministrateur (should be a YunoHost registered user).",
"de": "Wählen Sie einen Admin Benutzer (sollte ein registrierter YunoHost Benutzer sein).", "de": "Wählen Sie einen Admin Benutzer (sollte ein registrierter YunoHost Benutzer sein).",
"cs": "Zvolte administrátora (musí to být registrovaný uživatel YunoHostu)." "cs": "Zvolte administrátora (musí to být registrovaný uživatel YunoHostu)."
}, }
"example": "johndoe"
}, },
{ {
"name": "is_public", "name": "is_public",
@ -68,6 +66,7 @@
"cs": "Mohou se noví uživatelé registrovat?" "cs": "Mohou se noví uživatelé registrovat?"
}, },
"default": false "default": false
} ] }
]
} }
} }

View file

@ -36,8 +36,6 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#================================================= #=================================================
ynh_script_progression --message="Validating restoration parameters..." ynh_script_progression --message="Validating restoration parameters..."
ynh_webpath_available --domain=$domain --path_url=$path_url \
|| ynh_die --message="Path not available: ${domain}${path_url}"
test ! -d $final_path \ test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path " || ynh_die --message="There is already a directory: $final_path "