File: //proc/self/root/lib/apk/db/scripts.tar
busybox-1.35.0-r17.Q1iZ+C2JJdBlm2KKtAOkSkM7zZegY=.post-install 0000755 0000000 0000000 000000000203015052213637022042 0 ustar root root #!/bin/sh
# We need the symlinks early
/bin/busybox mkdir -p "/bin" "/sbin" "/usr/bin" "/usr/sbin"
exec /bin/busybox --install -s
busybox-1.35.0-r17.Q1iZ+C2JJdBlm2KKtAOkSkM7zZegY=.post-upgrade 0000755 0000000 0000000 000000002317015052213637022033 0 ustar root root #!/bin/sh
# remove links that has been relocated or removed
# - generate a list of all symlinks in bin dirs and a list with all busybox
# applets
# - sort the list and print all lines that are unique. This is the list of
# symlinks that does not exist in the busybox applets list.
# - use stat to find the target of those symlinks printed as:
# '/path/to/symlink' -> '/path/to/target'
# The "2>/dev/null" is used to stop "can't stat" warnings appearing on
# the console for each new command added by the new version of the
# busybox package.
# - use awk to print the symlinks that points to '/bin/busybox'
# - use sed to strip the leading and training ' chars
# - finally pass the list to rm for removing the symlinks that points to
# busybox but does not exist in the `busybox --list-all` list
cd /
( find bin sbin usr/bin usr/sbin -maxdepth 1 -type l; busybox --list-all) \
| sort | uniq -u \
| xargs -r stat -c "%N" 2>/dev/null \
| awk "\$3 == \"'/bin/busybox'\" {print \$1}" \
| sed "s/^'//; s/'$//" \
| xargs -r rm
for link in /bin/ping /bin/ping6; do
if [ -L "$link" ] && [ "$(readlink $link)" = "/bin/bbsuid" ]; then
rm "$link"
fi
done
# We need the symlinks early
exec /bin/busybox --install -s
busybox-1.35.0-r17.Q1iZ+C2JJdBlm2KKtAOkSkM7zZegY=.trigger 0000755 0000000 0000000 000000001042015052213637021056 0 ustar root root #!/bin/sh
do_bb_install=
for i in "$@"; do
case "$i" in
/lib/modules/*)
# don't run busybox depmod if we have kmod installed
# we dont need to run it twice.
target=$(readlink -f "$(command -v depmod || true)")
if [ -d "$i" ] && [ "$target" = "/bin/busybox" ]; then
/bin/busybox depmod ${i#/lib/modules/}
fi
;;
*) do_bb_install=yes;;
esac
done
if [ -n "$do_bb_install" ]; then
[ -e /bin/bbsuid ] && /bin/bbsuid --install
[ -e /bin/busybox-extras ] && /bin/busybox-extras --install -s
/bin/busybox --install -s
fi
alpine-baselayout-3.2.0-r23.Q19UI7UxyiUywG6aew9c3lCBPshsE=.pre-install 0000755 0000000 0000000 000000000070015052213637023670 0 ustar root root #!/bin/sh
addgroup -S -g 42 shadow 2>/dev/null
exit 0
alpine-baselayout-3.2.0-r23.Q19UI7UxyiUywG6aew9c3lCBPshsE=.post-install 0000755 0000000 0000000 000000001727015052213637024101 0 ustar root root #!/bin/sh
create_vserver_startstop() {
cat <<__EOF__
#!/bin/sh
# This file is for compatibility
case \${0##*/} in
rcL)
RUNLEVEL=1 /sbin/rc sysinit || exit 1
/sbin/rc boot || exit 1
/sbin/rc \${1:-default}
exit 0
;;
rcK)
/sbin/rc shutdown
;;
esac
__EOF__
}
# create compat start/stop scripts for vserver guests
if [ -x /sbin/rc ] && [ "$( /sbin/rc --sys )" = "VSERVER" ]; then
# create rcL and rcK
if ! [ -e /etc/init.d/rcL ]; then
create_vserver_startstop > /etc/init.d/rcL
chmod +x /etc/init.d/rcL
fi
if ! [ -e /etc/init.d/rcK ]; then
ln -s rcL /etc/init.d/rcK
fi
fi
# force /etc/shadow to be owned by root and not be world readable
chown root:shadow /etc/shadow
chmod 640 /etc/shadow
# update color_prompt.sh symlink (if exists) after we renamed color_prompt to
# color_prompt.sh.disabled.
case "$(readlink /etc/profile.d/color_prompt.sh 2>/dev/null || true)" in
color_prompt) ln -sf color_prompt.sh.disabled /etc/profile.d/color_prompt.sh;;
esac
exit 0
alpine-baselayout-3.2.0-r23.Q19UI7UxyiUywG6aew9c3lCBPshsE=.pre-upgrade 0000755 0000000 0000000 000000001363015052213637023657 0 ustar root root #!/bin/sh
# we need to have our modprobe.d files with .conf suffix
for i in /etc/modprobe.d/*; do
# ignore files that does not exist (i.e if modprobe.d is empty)
[ -r "$i" ] || continue
# ignore files that have an extension
case "$i" in
*.*) continue;;
esac
# append extension
mv "$i" "$i".conf
done
# migrate /var/run directory to /run
if [ -d /var/run ] && [ ! -L /var/run ]; then
cp -a /var/run/* /run 2>/dev/null
rm -rf /var/run
ln -s ../run /var/run
fi
# migrate /var/spool/mail directory to /var/mail
if [ -d /var/spool/mail ] && [ ! -L /var/spool/mail ]; then
mkdir -p /var/mail
cp -a /var/spool/mail/* /var/mail/ 2>/dev/null
rm -rf /var/spool/mail
ln -s ../mail /var/spool/mail
fi
addgroup -S -g 42 shadow 2>/dev/null
exit 0
alpine-baselayout-3.2.0-r23.Q19UI7UxyiUywG6aew9c3lCBPshsE=.post-upgrade 0000755 0000000 0000000 000000001727015052213637024062 0 ustar root root #!/bin/sh
create_vserver_startstop() {
cat <<__EOF__
#!/bin/sh
# This file is for compatibility
case \${0##*/} in
rcL)
RUNLEVEL=1 /sbin/rc sysinit || exit 1
/sbin/rc boot || exit 1
/sbin/rc \${1:-default}
exit 0
;;
rcK)
/sbin/rc shutdown
;;
esac
__EOF__
}
# create compat start/stop scripts for vserver guests
if [ -x /sbin/rc ] && [ "$( /sbin/rc --sys )" = "VSERVER" ]; then
# create rcL and rcK
if ! [ -e /etc/init.d/rcL ]; then
create_vserver_startstop > /etc/init.d/rcL
chmod +x /etc/init.d/rcL
fi
if ! [ -e /etc/init.d/rcK ]; then
ln -s rcL /etc/init.d/rcK
fi
fi
# force /etc/shadow to be owned by root and not be world readable
chown root:shadow /etc/shadow
chmod 640 /etc/shadow
# update color_prompt.sh symlink (if exists) after we renamed color_prompt to
# color_prompt.sh.disabled.
case "$(readlink /etc/profile.d/color_prompt.sh 2>/dev/null || true)" in
color_prompt) ln -sf color_prompt.sh.disabled /etc/profile.d/color_prompt.sh;;
esac
exit 0
ca-certificates-20230506-r0.Q1kupRlLRIRrQO6w4STzgGd3gi8hM=.post-deinstall 0000755 0000000 0000000 000000000211015052213637024157 0 ustar root root #!/bin/sh
# clean up broken symlinks store
find -L /etc/ssl/certs -maxdepth 1 -type l -delete
rmdir /etc/ssl/certs 2>/dev/null || true
ca-certificates-20230506-r0.Q1kupRlLRIRrQO6w4STzgGd3gi8hM=.trigger 0000755 0000000 0000000 000000000110015052213637022656 0 ustar root root #!/bin/sh
/usr/sbin/update-ca-certificates --fresh &> /dev/null
exit 0
shadow-4.10-r3.Q1i5QzwLaVJkYS6kEzTh7GVR1ZoUo=.post-upgrade 0000755 0000000 0000000 000000000766015052213637021540 0 ustar root root #!/bin/sh
ver_old=$2
if [ "$(apk version -t "$ver_old" '4.10-r0')" = '<' ]; then
cat >&2 <<-EOF
*
* Shadow login utils (faillog, lastlog, login, newgrp, nologin, sg, su) have
* been moved to the shadow-login subpackage. Note that most of these are also
* provided by the util-linux-login package, which is preferred over shadow.
*
* Shadow *conv utils (pwconv, pwunconv, grpconv, and grpunconv) have been
* moved to a subpackage. If you use them, run: apk add shadow-conv.
*
EOF
fi
exit 0