summarylogtreecommitdiffstats
path: root/freshrss.install
blob: 19868c5885b88be34fbc92339c7ed4faf7f84b55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
post_install() {
  chown -R http:http /var/lib/webapps/freshrss
  echo 'You can now configure your (PHP compatible) web server to run FreshRSS'
}

pre_upgrade() {
  # Move data dir to new location if needed
  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

    echo 'Datadir has been automatically moved to /var/lib/webapps/freshrss/data'
  fi
}

post_upgrade() {
  post_install
}

# vim:set ts=2 sw=2 et: