mirror of
https://github.com/YunoHost-Apps/zabbix_ynh.git
synced 2024-09-03 20:36:14 +02:00
Merge pull request #29 from YunoHost-Apps/testing
Fix /etc/sudoers.d/zabbix perms ...
This commit is contained in:
commit
9c1395710d
5 changed files with 6 additions and 9 deletions
|
@ -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
|
Monitoring tool for diverse IT components, including networks, servers, VMs and cloud services
|
||||||
|
|
||||||
**Shipped version:** 4.4~ynh2
|
**Shipped version:** 4.4~ynh3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Monitoring tool for diverse IT components, including networks, servers, VMs and cloud services",
|
"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"
|
"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",
|
"url": "https://www.zabbix.com",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-2.0-or-later",
|
"license": "GPL-2.0-or-later",
|
||||||
|
@ -33,8 +33,7 @@
|
||||||
"install" : [
|
"install" : [
|
||||||
{
|
{
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"type": "domain",
|
"type": "domain"
|
||||||
"example": "example.com"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "path",
|
"name": "path",
|
||||||
|
@ -44,8 +43,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"type": "user",
|
"type": "user"
|
||||||
"example": "mickael"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
|
|
|
@ -98,6 +98,7 @@ import_template () {
|
||||||
bashUserPpath="../conf/etc_zabbix_zabbix_agentd.d_yunohost.sh"
|
bashUserPpath="../conf/etc_zabbix_zabbix_agentd.d_yunohost.sh"
|
||||||
|
|
||||||
cp "$sudoUserPpath" /etc/sudoers.d/zabbix
|
cp "$sudoUserPpath" /etc/sudoers.d/zabbix
|
||||||
|
chmod 400 /etc/sudoers.d/zabbix
|
||||||
|
|
||||||
if [ -d /etc/zabbix/zabbix_agentd.d ]
|
if [ -d /etc/zabbix/zabbix_agentd.d ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -42,8 +42,6 @@ ynh_script_progression --message="Validating restoration parameters..."
|
||||||
|
|
||||||
remove_previous_zabbix
|
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 \
|
test ! -d $final_path \
|
||||||
|| ynh_die --message="There is already a directory: $final_path "
|
|| ynh_die --message="There is already a directory: $final_path "
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue