Преглед изворни кода

Merge pull request #29 from YunoHost-Apps/testing

Fix /etc/sudoers.d/zabbix perms ...
Alexandre Aubin пре 4 година
родитељ
комит
9c1395710d
5 измењених фајлова са 6 додато и 9 уклоњено
  1. 1 1
      README.md
  2. 1 1
      README_fr.md
  3. 3 5
      manifest.json
  4. 1 0
      scripts/_common.sh
  5. 0 2
      scripts/restore

+ 1 - 1
README.md

@@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
 
 Monitoring tool for diverse IT components, including networks, servers, VMs and cloud services
 
-**Shipped version:** 4.4~ynh2
+**Shipped version:** 4.4~ynh3
 
 
 

+ 1 - 1
README_fr.md

@@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
 
 Outil pour monitorer des réseaux, des serveurs, des VMs et autres services en ligne
 
-**Version incluse :** 4.4~ynh2
+**Version incluse :** 4.4~ynh3
 
 
 

+ 3 - 5
manifest.json

@@ -6,7 +6,7 @@
         "en": "Monitoring tool for diverse IT components, including networks, servers, VMs and cloud services",
         "fr": "Outil pour monitorer des réseaux, des serveurs, des VMs et autres services en ligne"
     },
-    "version": "4.4~ynh2",
+    "version": "4.4~ynh3",
     "url": "https://www.zabbix.com",
     "upstream": {
         "license": "GPL-2.0-or-later",
@@ -33,8 +33,7 @@
         "install" : [
             {
                 "name": "domain",
-                "type": "domain",
-                "example": "example.com"
+                "type": "domain"
             },
             {
                 "name": "path",
@@ -44,8 +43,7 @@
             },
             {
                 "name": "admin",
-                "type": "user",
-                "example": "mickael"
+                "type": "user"
             },
             {
                 "name": "is_public",

+ 1 - 0
scripts/_common.sh

@@ -98,6 +98,7 @@ import_template () {
 	bashUserPpath="../conf/etc_zabbix_zabbix_agentd.d_yunohost.sh"
 
 	cp "$sudoUserPpath" /etc/sudoers.d/zabbix
+	chmod 400 /etc/sudoers.d/zabbix
 
 	if [ -d /etc/zabbix/zabbix_agentd.d ]
 	then

+ 0 - 2
scripts/restore

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