mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
main/acf-core: Added post-upgrade to use new acf.conf.
This commit is contained in:
parent
99c131bece
commit
db5843ca6f
@ -5,6 +5,7 @@ pkgrel=0
|
||||
pkgdesc="A web-based system administration interface framework"
|
||||
url="http://git.alpinelinux.org/cgit/acf-core"
|
||||
license="GPL-2"
|
||||
install="$pkgname.post-upgrade"
|
||||
depends="acf-jquery acf-lib acf-skins haserl lua lua-posix lua-md5"
|
||||
source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2"
|
||||
|
||||
|
||||
16
main/acf-core/acf-core.post-upgrade
Normal file
16
main/acf-core/acf-core.post-upgrade
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
new=$1
|
||||
old=$2
|
||||
|
||||
# if current is not older than 0.10.1 we exit.
|
||||
if ! [ "$(apk version -t $old 0.10.1)" = "<" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -e /etc/acf/acf.conf.apk-new ]; then
|
||||
mv /etc/acf/acf.conf /etc/acf/acf.conf.apk-old
|
||||
mv /etc/acf/acf.conf.apk-new /etc/acf/acf.conf
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Loading…
x
Reference in New Issue
Block a user