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 }