Commit 3b158a1c authored by alice's avatar alice 🗡
Browse files

main/logrotate: fix permissions of logrotate status

fixes #13946
parent aebe1834
......@@ -2,11 +2,12 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=logrotate
pkgver=3.18.1
pkgrel=2
pkgrel=3
pkgdesc="Tool to rotate logfiles"
url="https://github.com/logrotate/logrotate"
arch="all"
license="GPL-2.0-or-later"
install="$pkgname.post-upgrade"
makedepends="popt-dev autoconf automake libtool"
checkdepends="coreutils"
subpackages="$pkgname-doc $pkgname-openrc"
......
#!/bin/sh
ver_old=$2
if [ "$(apk version -t "$ver_old" '3.18.1-r3')" = '<' ]; 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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment