PHP 8.2.30
Preview: fix-ALTMODP-166.sh Size: 618 B
//proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/opt/cpanel/ea-ruby27/fix-ALTMODP-166.sh

#!/bin/sh

FIXED_FLAG=/usr/share/lve/ALTMODP-166.fixed
CAGEFS_MP=/etc/cagefs/cagefs.mp
CAGEFSCTL=/usr/sbin/cagefsctl

if [ -f "$CAGEFS_MP" ]
then
    # Remove alt-mod-passenger auto comment and the line after it
    /usr/bin/sed -i -e '/^# next line is added by alt-mod-passenger/,+1d' "$CAGEFS_MP"

    if [ -x "$CAGEFSCTL" ]
    then
        echo "CageFS will be remounted for alt-mod-passenger cleanup"
        "$CAGEFSCTL" --remount-all
        echo "CageFS remounted"
    fi
    /bin/touch "$FIXED_FLAG"
else
    # No MP -> no alt-mod-passenger setup, so no need to fix it
    /bin/touch "$FIXED_FLAG"
fi
exit 0

Directory Contents

Dirs: 2 × Files: 2

Name Size Perms Modified Actions
root DIR
- dr-xr-xr-x 2024-03-21 10:21:15
Edit Download
src DIR
- drwxr-xr-x 2026-02-13 08:03:55
Edit Download
539 B lrw-r--r-- 2024-02-01 10:00:03
Edit Download
618 B lrwxr-xr-x 2026-02-05 08:54:24
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).