HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/lib/dpkg/info/init-system-helpers.postinst
#!/bin/sh

set -e

# begin-remove-after: released:forky
# Workaround for live-build issue #1111039 which affects some rootfs
# installed by the installer flavor that copies the livefs onto the rootfs
# instead of bootstrapping from packages
if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg-divert --list /etc/os-release | grep -q os-release.debootstrap; then
    dpkg-divert --quiet --local --remove --no-rename /etc/os-release
    rm -f /etc/os-release
    ln -s ../usr/lib/os-release /etc/os-release
fi
# end-remove-after