Current Path : /lib/apk/db/ |
Current File : //lib/apk/db/scripts.tar |
alpine-baselayout-3.6.5-r0.Q1qKcZ+j23xssAXmgQhkOO8dHnbWw=.pre-install 0000755 0000000 0000000 000000000070014616104417023657 0 ustar root root #!/bin/sh addgroup -S -g 42 shadow 2>/dev/null exit 0 alpine-baselayout-3.6.5-r0.Q1qKcZ+j23xssAXmgQhkOO8dHnbWw=.post-install 0000755 0000000 0000000 000000000705014616104417024063 0 ustar root root #!/bin/sh # 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 # the /etc/group file is created after /etc/shadow. Needed to apply the group # properly. chown root:shadow etc/shadow [ -e etc/shadow- ] && chown root:shadow etc/shadow- exit 0 alpine-baselayout-3.6.5-r0.Q1qKcZ+j23xssAXmgQhkOO8dHnbWw=.pre-upgrade 0000755 0000000 0000000 000000001345014616104417023646 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.6.5-r0.Q1qKcZ+j23xssAXmgQhkOO8dHnbWw=.post-upgrade 0000755 0000000 0000000 000000000705014616104417024044 0 ustar root root #!/bin/sh # 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 # the /etc/group file is created after /etc/shadow. Needed to apply the group # properly. chown root:shadow etc/shadow [ -e etc/shadow- ] && chown root:shadow etc/shadow- exit 0 bash-5.2.26-r0.Q1T7ybaru7c19hy9gNWbQNddWiyFM=.post-install 0000755 0000000 0000000 000000000047014551167645021427 0 ustar root root #!/bin/sh add-shell '/bin/bash' exit 0 bash-5.2.26-r0.Q1T7ybaru7c19hy9gNWbQNddWiyFM=.pre-deinstall 0000755 0000000 0000000 000000000052014551167645021535 0 ustar root root #!/bin/sh remove-shell '/bin/bash' exit 0 bash-5.2.26-r0.Q1T7ybaru7c19hy9gNWbQNddWiyFM=.post-upgrade 0000755 0000000 0000000 000000000047014551167645021410 0 ustar root root #!/bin/sh add-shell '/bin/bash' exit 0 busybox-1.36.1-r29.Q1yY8lhMF1VhgegJgkcXfqaNabDJw=.post-install 0000755 0000000 0000000 000000000517014631523463022402 0 ustar root root #!/bin/busybox sh # We need the symlinks early /bin/busybox mkdir -p "/bin" "/sbin" "/usr/bin" "/usr/sbin" /bin/busybox --install -s || exit 1 # can't be in pre-install since adduser/group may not available then addgroup -S klogd 2>/dev/null adduser -S -D -H -h /dev/null -s /sbin/nologin -G klogd -g klogd klogd 2>/dev/null exit 0 busybox-1.36.1-r29.Q1yY8lhMF1VhgegJgkcXfqaNabDJw=.post-upgrade 0000755 0000000 0000000 000000002626014631523463022366 0 ustar root root #!/bin/busybox 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 ( 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 /bin/busybox --install -s || exit 1 # can't be in pre-upgrade since adduser/group may not available then addgroup -S klogd 2>/dev/null adduser -S -D -H -h /dev/null -s /sbin/nologin -G klogd -g klogd klogd 2>/dev/null exit 0 busybox-1.36.1-r29.Q1yY8lhMF1VhgegJgkcXfqaNabDJw=.trigger 0000755 0000000 0000000 000000001042014631523463021406 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 ca-certificates-20241121-r1.Q1WClHJoxb5CdISFa++OgNpPpB8ss=.post-deinstall 0000755 0000000 0000000 000000000211014737445732024004 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-20241121-r1.Q1WClHJoxb5CdISFa++OgNpPpB8ss=.trigger 0000755 0000000 0000000 000000000077014737445732022517 0 ustar root root #!/bin/sh /usr/sbin/update-ca-certificates &> /dev/null exit 0 fontconfig-2.15.0-r1.Q1DsfM38FUZzf8mBIlYTB85bXBqAY=.trigger 0000755 0000000 0000000 000000000057014606201110021320 0 ustar root root #!/bin/sh fc-cache --system-only > /dev/null icu-data-en-74.2-r0.Q1RLn+wVQbHYMgqqXpVKrYQkrsvAc=.post-install 0000755 0000000 0000000 000000000221014574072726022613 0 ustar root root #!/bin/sh cat >&2 <<EOF * * If you need ICU with non-English locales and legacy charset support, install * package icu-data-full. * EOF exit 0 imagemagick-7.1.1.32-r2.Q1Yj60UXos5srNXVNwjhE3CV+TnSk=.post-upgrade 0000755 0000000 0000000 000000000756014627240731022753 0 ustar root root #!/bin/sh ver_old=$2 if [ "$(apk version -t "$ver_old" '7.1.1.11-r2')" = '<' ]; then cat >&2 <<-EOF * * imagemagick support for various modules was split into subpackages. * they autoinstall with the requisite library already installed. * if not already present, install the module you want to use manually: * (prefixed with imagemagick- ) * -heic -jpeg -pdf -raw * -svg -tiff -webp -jxl * if you want to exclude the support regardless, use e.g. 'apk add !imagemagick-pdf' * EOF fi mariadb-common-10.11.11-r0.Q1mW1fKBPbeZPlZVfOySkSWeNGsIE=.post-upgrade 0000755 0000000 0000000 000000000361014757371145023456 0 ustar root root #!/bin/sh # do not disable networking if we have a pre-existing, old config if [ -e /etc/mysql/my.cnf ] && [ -e /etc/my.cnf.d/mariadb-server.cnf ]; then sed -i -e 's/^skip-networking/#skip-networking/' /etc/my.cnf.d/mariadb-server.cnf fi nginx-1.26.2-r0.Q1ZacEpvWWY60JEy6xCxPKKcg7/oY=.pre-install 0000755 0000000 0000000 000000000322014657215756021262 0 ustar root root #!/bin/sh addgroup -Sg 82 www-data 2>/dev/null addgroup -S nginx 2>/dev/null adduser -S -D -H -h /var/lib/nginx -s /sbin/nologin -G nginx -g nginx nginx 2>/dev/null addgroup nginx www-data 2>/dev/null exit 0 nginx-1.26.2-r0.Q1ZacEpvWWY60JEy6xCxPKKcg7/oY=.post-install 0000755 0000000 0000000 000000000567014657215756021474 0 ustar root root #!/bin/sh # This is needed for containers that don't start nginx using init script. install -d -m 755 -o nginx -g nginx /run/nginx || true # Install config with the default http server to the new location (since 1.18.0-r13). if ! [ -e /etc/nginx/http.d/default.conf ]; then install -m644 /usr/share/nginx/http-default_server.conf /etc/nginx/http.d/default.conf fi exit 0 nginx-1.26.2-r0.Q1ZacEpvWWY60JEy6xCxPKKcg7/oY=.pre-upgrade 0000755 0000000 0000000 000000000350014657215756021244 0 ustar root root #!/bin/sh # symlink to directory confuses apk. remove it before the upgrade # https://gitlab.alpinelinux.org/alpine/aports/-/issues/11204 if [ "$(readlink /var/lib/nginx/tmp)" = "/var/tmp/nginx" ]; then rm /var/lib/nginx/tmp fi nginx-1.26.2-r0.Q1ZacEpvWWY60JEy6xCxPKKcg7/oY=.post-upgrade 0000755 0000000 0000000 000000003440014657215756021446 0 ustar root root #!/bin/sh ver_new="$1" ver_old="$2" if [ "$(apk version -t "$ver_old" "1.10.1-r3")" = "<" ]; then cat 1>&2 <<-EOF * * The nginx package has been modified to use dynamic modules. Now there's * just single package providing nginx executable and bunch of nginx-mod-* * subpackages. * * Lua support is now provided by package nginx-mod-http-lua, RTMP support * is provided by nginx-mod-rtmp. * * Modules mail and stream are dynamic modules too and so not included * by default anymore. If you use them, install nginx-mod-mail and * nginx-mod-stream. * EOF fi # Handle transition from /etc/nginx/conf.d to /etc/nginx/http.d. if [ "$(apk version -t "$ver_old" '1.18.0-r13')" = '<' ]; then if ! [ -e /etc/nginx/http.d/default.conf ]; then install -D -m644 /usr/share/nginx/http-default_server.conf \ /etc/nginx/http.d/default.conf fi fi # Handle transition from /etc/nginx/conf.d to /etc/nginx/http.d. if [ "$(apk version -t "$ver_old" '1.22.0-r7')" = '<' ]; then if sed -En '/^http\s*\{/,/^\}/{ /^\s*include\s+\/etc\/nginx\/conf.d\/.*;/p }' /etc/nginx/nginx.conf | grep -q .; then cat >&2 <<-EOF !! !! Found 'include /etc/nginx/conf.d/*.conf' in the 'http' section! !! The default and preferred location for nginx http configs has been changed !! from /etc/nginx/conf.d to /etc/nginx/http.d. The former is now used for !! configs to be included in the root context. Move your vhost configs from !! /etc/nginx/conf.d/ to /etc/nginx/http.d/ and update /etc/nginx/nginx.conf. !! EOF fi fi # Handle trasition from /var/tmp/nginx to /var/lib/nginx/tmp # https://gitlab.alpinelinux.org/alpine/aports/-/issues/11204 if [ -d /var/lib/nginx/tmp ]; then for i in /var/tmp/nginx/*; do if [ -e "$i" ]; then mv $i /var/lib/nginx/tmp/ fi done rmdir /var/tmp/nginx 2>/dev/null fi exit 0 util-linux-misc-2.40.1-r1.Q1OqqkvzQyg7fxupz8s5dAgOfxg54=.post-upgrade 0000755 0000000 0000000 000000000413014622716630023772 0 ustar root root #!/bin/sh ver_old=$2 if [ "$(apk version -t "$ver_old" '2.38-r2')" = '<' ]; then cat >&2 <<-EOF * * The mount and umount programs have been moved from util-linux-misc to * individual subpackages. If you use them, run: "apk add mount umount". * EOF fi exit 0 valkey-7.2.8-r0.Q1uVK4P3eIV6Fo7EXRHcJO4kBUGMA=.pre-install 0000755 0000000 0000000 000000000216014740233711021016 0 ustar root root #!/bin/sh addgroup -S valkey 2>/dev/null adduser -S -D -H -h /var/lib/valkey -s /sbin/nologin -G valkey -g valkey valkey 2>/dev/null exit 0 valkey-7.2.8-r0.Q1uVK4P3eIV6Fo7EXRHcJO4kBUGMA=.post-install 0000755 0000000 0000000 000000000532014740233711021216 0 ustar root root #!/bin/sh # Create directory for the socket if OpenRC is not present (e.g. in container). # It's conditioned using post-install script specifically to avoid easily # overlookable mistakes in the init script (service working until the # first restart). if ! [ -e /sbin/openrc ]; then install -d -m 755 -o valkey -g valkey /run/valkey fi exit 0 varnish-7.5.0-r0.Q1FY1l0F23SmccqFX8yKmdQh5XwMo=.pre-install 0000755 0000000 0000000 000000000223014604674342021477 0 ustar root root #!/bin/sh addgroup -S varnish 2>/dev/null adduser -S -D -H -h /var/lib/varnish -s /sbin/nologin -G varnish -g varnish varnish 2>/dev/null exit 0