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 }