Skip to content

Commit 37cc471

Browse files
authored
phpIPHAM: patch db and add fping (#9177)
Added installation of dependencies and patched SCHEMA.sql for phpIPAM.
1 parent 2bbc779 commit 37cc471

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install/phpipam-install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ setting_up_container
1313
network_check
1414
update_os
1515

16+
msg_info "Installing Dependencies"
17+
$STD apt install -y fping
18+
msg_ok "Installed Dependencies"
19+
1620
PHP_VERSION="8.3" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="mysql,gmp,snmp,ldap,apcu" setup_php
1721

1822
msg_info "Installing PHP-PEAR"
@@ -26,6 +30,8 @@ MARIADB_DB_NAME="phpipam" MARIADB_DB_USER="phpipam" setup_mariadb_db
2630
fetch_and_deploy_gh_release "phpipam" "phpipam/phpipam" "prebuild" "latest" "/opt/phpipam" "phpipam-v*.zip"
2731

2832
msg_info "Installing phpIPAM"
33+
# patch SCHEMA, during varchar l_name is to short in upstream (2025-11-15)
34+
sed -i -E 's/`l_name`\s+varchar\([0-9]+\)/`l_name` varchar(128)/' /opt/phpipam/db/SCHEMA.sql
2935
$STD mariadb -u root "${MARIADB_DB_NAME}" </opt/phpipam/db/SCHEMA.sql
3036
cp /opt/phpipam/config.dist.php /opt/phpipam/config.php
3137
sed -i -e "s/\(\$disable_installer = \).*/\1true;/" \

0 commit comments

Comments
 (0)