HEX
Server: Apache
System: Linux eisbus 6.8.12-9-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-9 (2025-03-16T19:18Z) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/lib/dpkg/info/inithooks.postinst
#!/bin/sh

set -e

mkdir -p /var/run/turnkey-init-fence
if [ -f /etc/default/turnkey-init-fence ]; then
    RUNAS=$(sed -n 's/^RUNAS=//p' /etc/default/turnkey-init-fence)
    if [ -n "$RUNAS" ]; then
        chown -R $RUNAS /var/run/turnkey-init-fence 
    fi
fi

chmod 755 /usr/lib/inithooks/bin/inithooks_cache.py


# Automatically added by dh_python3
if command -v py3compile >/dev/null 2>&1; then
	py3compile -p inithooks 
fi
if command -v pypy3compile >/dev/null 2>&1; then
	pypy3compile -p inithooks  || true
fi

if command -v py3compile >/dev/null 2>&1; then
	py3compile -p inithooks /usr/lib/inithooks
fi
if command -v pypy3compile >/dev/null 2>&1; then
	pypy3compile -p inithooks /usr/lib/inithooks || true
fi

# End automatically added section


exit 0