mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-11 23:24:17 +02:00
12 lines
318 B
Bash
12 lines
318 B
Bash
#!/bin/sh
|
|
|
|
ver_old=$2
|
|
|
|
if [ "$(apk version -t "$ver_old" '3.20.1-r1')" = '<' ]; then
|
|
# need to remove world permissions from status file, to dodge
|
|
# error: state file /var/lib/logrotate.status is world-readable
|
|
# 640 matches the spec file
|
|
chmod 640 /var/lib/logrotate.status
|
|
fi
|
|
|
|
exit 0
|