upgpkg: freshrss 1.15.3-3
correct test for upgrade need
This commit is contained in:
parent
2fcaacdb24
commit
9e29ffcd7b
3 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
pkgbase = freshrss
|
||||
pkgdesc = A free, self-hostable aggregator…
|
||||
pkgver = 1.15.3
|
||||
pkgrel = 2
|
||||
pkgrel = 3
|
||||
url = http://freshrss.org/
|
||||
install = freshrss.install
|
||||
arch = any
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
pkgname=freshrss
|
||||
pkgver=1.15.3
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc='A free, self-hostable aggregator…'
|
||||
arch=('any')
|
||||
url='http://freshrss.org/'
|
||||
|
|
|
@ -5,8 +5,8 @@ post_install() {
|
|||
|
||||
pre_upgrade() {
|
||||
# Move data dir to new location if needed
|
||||
if [ ! -L /usr/share/webapps/freshrss/data ] ; then
|
||||
# dir not yet symlinked
|
||||
if [ ! -d /var/lib/webapps/freshrss/data ] ; then
|
||||
# dir not yet created
|
||||
install -dm 700 /var/lib/webapps/freshrss
|
||||
mv /usr/share/webapps/freshrss/data /var/lib/webapps/freshrss/data
|
||||
chown -R http:http /var/lib/webapps/freshrss
|
||||
|
|
Loading…
Reference in a new issue