HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux srv1.dlabib.net 6.8.0-94-generic #96-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 9 20:36:55 UTC 2026 x86_64
User: hbkconsultan_usr (1002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /var/lib/dpkg/info/libapache2-mod-rpaf.postinst
#!/bin/sh
set -e

conf_path='/etc/apache2/mods-available/rpaf.conf'
main_ip=$(ip addr show scope global up | awk -F '[ /]' '/inet/ {print $6}' | xargs)

sed -i -e "s/^\(RPAF_ProxyIPs.*\)$/\1 $main_ip/" $conf_path