From 37cc47126e6bf250fda9e2ccfb13ae4867eed8d9 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sat, 15 Nov 2025 21:32:02 +0100 Subject: [PATCH] phpIPHAM: patch db and add fping (#9177) Added installation of dependencies and patched SCHEMA.sql for phpIPAM. --- install/phpipam-install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install/phpipam-install.sh b/install/phpipam-install.sh index 9d9620e177..2d51aad2a1 100644 --- a/install/phpipam-install.sh +++ b/install/phpipam-install.sh @@ -13,6 +13,10 @@ setting_up_container network_check update_os +msg_info "Installing Dependencies" +$STD apt install -y fping +msg_ok "Installed Dependencies" + PHP_VERSION="8.3" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="mysql,gmp,snmp,ldap,apcu" setup_php msg_info "Installing PHP-PEAR" @@ -26,6 +30,8 @@ MARIADB_DB_NAME="phpipam" MARIADB_DB_USER="phpipam" setup_mariadb_db fetch_and_deploy_gh_release "phpipam" "phpipam/phpipam" "prebuild" "latest" "/opt/phpipam" "phpipam-v*.zip" msg_info "Installing phpIPAM" +# patch SCHEMA, during varchar l_name is to short in upstream (2025-11-15) +sed -i -E 's/`l_name`\s+varchar\([0-9]+\)/`l_name` varchar(128)/' /opt/phpipam/db/SCHEMA.sql $STD mariadb -u root "${MARIADB_DB_NAME}"