upgpkg: freshrss 1.15.3-3

correct test for upgrade need
This commit is contained in:
Cedric Girard 2019-12-01 14:49:11 +01:00
parent 2fcaacdb24
commit 9e29ffcd7b
Signed by: X-dark
GPG key ID: E7D0E125DB9519E4
3 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
pkgbase = freshrss pkgbase = freshrss
pkgdesc = A free, self-hostable aggregator… pkgdesc = A free, self-hostable aggregator…
pkgver = 1.15.3 pkgver = 1.15.3
pkgrel = 2 pkgrel = 3
url = http://freshrss.org/ url = http://freshrss.org/
install = freshrss.install install = freshrss.install
arch = any arch = any

View file

@ -2,7 +2,7 @@
pkgname=freshrss pkgname=freshrss
pkgver=1.15.3 pkgver=1.15.3
pkgrel=2 pkgrel=3
pkgdesc='A free, self-hostable aggregator…' pkgdesc='A free, self-hostable aggregator…'
arch=('any') arch=('any')
url='http://freshrss.org/' url='http://freshrss.org/'

View file

@ -5,8 +5,8 @@ post_install() {
pre_upgrade() { pre_upgrade() {
# Move data dir to new location if needed # Move data dir to new location if needed
if [ ! -L /usr/share/webapps/freshrss/data ] ; then if [ ! -d /var/lib/webapps/freshrss/data ] ; then
# dir not yet symlinked # dir not yet created
install -dm 700 /var/lib/webapps/freshrss install -dm 700 /var/lib/webapps/freshrss
mv /usr/share/webapps/freshrss/data /var/lib/webapps/freshrss/data mv /usr/share/webapps/freshrss/data /var/lib/webapps/freshrss/data
chown -R http:http /var/lib/webapps/freshrss chown -R http:http /var/lib/webapps/freshrss