Просмотр исходного кода

Fix missing php dependencies (#87)

* try fix creation admin user

* quotes

* try fix create user ldap

* try fix session not open

* try fix session not open

* try fix session not open

* seems real path

* keep good path

* try fix create_user zabbix-cli

* try fix create_user zabbix-cli

* try fic zabbix-cli

* zabbix-cli not taking the config

* Update manifest.toml

needed dependencie

* Update manifest.toml

* Update manifest.toml

ok

Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>

* Update scripts/install

ok

Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>

* Update conf/zabbix-cli.toml

ok

Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>

---------

Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
Robles Rodolphe 7 месяцев назад
Родитель
Сommit
b00499f455
3 измененных файлов с 5 добавлено и 3 удалено
  1. 1 1
      conf/etc_zabbix_zabbix_agentd.d_yunohost.sh
  2. 2 0
      manifest.toml
  3. 2 2
      scripts/install

+ 1 - 1
conf/etc_zabbix_zabbix_agentd.d_yunohost.sh

@@ -15,7 +15,7 @@ if [ "$1" == "yunohost.domains.discover" ] ;then
 fi
 
 if [ "$1" == "yunohost.domain.cert" ] ;then
-	$yunobin domain cert-status "$2" --output-as plain --full| awk '/#/{ next;} {printf "%s;",$0} END {print ""}'
+	$yunobin domain cert status "$2" --output-as plain --full| awk '/#/{ next;} {printf "%s;",$0} END {print ""}'
 fi
 
 if [ "$1" == "yunohost.services.discover" ] ;then

+ 2 - 0
manifest.toml

@@ -71,6 +71,8 @@ ram.runtime = "200M"
     [resources.apt]
     packages = [
         "php8.2-fpm",
+        "php8.2-bcmath",
+        "php8.2-mbstring",
         "mariadb-server",
         "python3-venv",
     ]

+ 2 - 2
scripts/install

@@ -92,7 +92,7 @@ python3 -m venv /usr/share/zabbix-cli
 ynh_print_info --message="Creating ldap zabbix user"
 yunohost user create "$zabbix_username" --fullname "${zabbix_username//_}" --domain "$domain" --password "$zabbix_password" -q 0
 ynh_add_config --template="zabbix-cli_default.toml" --destination="/usr/share/zabbix-cli/zabbix-cli.toml"
-/usr/share/zabbix-cli/bin/zabbix-cli --config /usr/share/zabbix-cli/zabbix-cli.toml create_user $zabbix_username --firstname $zabbix_username --lastname $zabbix_username --passwd $zabbix_password --role superadmin --groups 7
+/usr/share/zabbix-cli/bin/zabbix-cli --config "/usr/share/zabbix-cli/zabbix-cli.toml" create_user "$zabbix_username" --firstname "$zabbix_username" --lastname "$zabbix_username" --passwd "$zabbix_password" --role superadmin --groups 7
 ynh_add_config --template="zabbix-cli.toml" --destination="/usr/share/zabbix-cli/zabbix-cli.toml"
 ynh_secure_remove --file="/usr/share/zabbix-cli/.zabbix-cli_auth_token"
 
@@ -108,7 +108,7 @@ $mysqlconn -e "UPDATE \`config\` SET \`authentication_type\` = '1', \`ldap_auth_
 ynh_print_info --message="Creating admin user"
 lastname=$(ynh_user_get_info "$admin" lastname)
 firstname=$(ynh_user_get_info "$admin" firstname)
-/usr/share/zabbix-cli/bin/zabbix-cli --config /usr/share/zabbix-cli/zabbix-cli.toml create_user $admin --firstname $firstname --lastname $lastname --role superadmin --groups 7
+/usr/share/zabbix-cli/bin/zabbix-cli --config /usr/share/zabbix-cli/zabbix-cli.toml create_user "$admin" --firstname "$firstname" --lastname "$lastname" --role superadmin --groups 7
 
 # users creation
 ynh_print_info --message="Creating all users"