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
|
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
|
||||||
|
|
|
@ -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/'
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue