1 2 3 4 5 6 7 8 9 10 11 12 13
post_install() { if [[ ! -f /var/lib/sonarr/config.xml ]]; then if [[ -f /var/lib/nzbdrone/config.xml ]]; then echo "Previous installation of nzbdrone detected, copying to sonarr." cp /var/lib/nzbdrone/* /var/lib/sonarr fi fi } post_upgrade() { post_install $1 }