summarylogtreecommitdiffstats
path: root/ombi.install
blob: 5f1f17bc6d3772580900f7064af2e498bf895474 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pre_upgrade() {
  systemctl stop ombi.service
}

post_upgrade() {
  if [ -f /opt/Ombi/Schedules.db ]; then
    mv /opt/Ombi/Schedules.db /var/lib/ombi/Schedules.db
  fi

  if [ -f /opt/Ombi/Ombi.db ]; then
    mv /opt/Ombi/Ombi.db /var/lib/ombi/Ombi.db
  fi

  systemctl daemon-reload
  systemctl start ombi.service
}