summarylogtreecommitdiffstats
path: root/ombi.install
diff options
context:
space:
mode:
authorNicola Hinssen2018-03-23 15:35:18 +0100
committerNicola Hinssen2018-03-23 15:35:18 +0100
commitffa7f5931e3bed8162809f2b9fefbeaee3f1254c (patch)
treee832b78d550c3f9f9756bdba7702abb61a39c668 /ombi.install
parent9eef7ab3456de27f53c103e650753f4d591c5d33 (diff)
downloadaur-ffa7f5931e3bed8162809f2b9fefbeaee3f1254c.tar.gz
More changes
Diffstat (limited to 'ombi.install')
-rw-r--r--ombi.install16
1 files changed, 7 insertions, 9 deletions
diff --git a/ombi.install b/ombi.install
index b6f77d09d0a9..24dfdc4eee5a 100644
--- a/ombi.install
+++ b/ombi.install
@@ -1,14 +1,12 @@
-post_install() {
- systemd-sysusers ombi.conf
- chown -R ombi:ombi /opt/Ombi
+pre_upgrade() {
+ systemctl stop ombi.service
}
post_upgrade() {
- chown -R ombi:ombi /opt/Ombi
- systemctl daemon-reload
-}
+ if [ -f /opt/Ombi/Ombi.sqlite ]; then
+ mv /opt/Ombi/Ombi.sqlite /var/lib/ombi/Ombi.sqlite
+ fi
-post_remove() {
- systemctl stop ombi.service
- true
+ systemctl daemon-reload
+ systemctl start ombi.service
}