2016-06-22 11:35:27 +02:00
|
|
|
post_install() {
|
2019-12-01 14:45:34 +01:00
|
|
|
chown -R http:http /var/lib/webapps/freshrss
|
2016-06-22 11:35:27 +02:00
|
|
|
echo 'You can now configure your (PHP compatible) web server to run FreshRSS'
|
|
|
|
}
|
|
|
|
|
2019-12-01 14:45:34 +01:00
|
|
|
pre_upgrade() {
|
|
|
|
# Move data dir to new location if needed
|
|
|
|
if [ ! -L /usr/share/webapps/freshrss/data ] ; then
|
|
|
|
# dir not yet symlinked
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2016-06-22 11:35:27 +02:00
|
|
|
post_upgrade() {
|
|
|
|
post_install
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|