=== Database Update to UTF8 ===
echo "alter database appdb charset=utf8" | mysql -uappdb -pappdb
=== Backup App Config to Share on Uninstall ===
echo Backing up .sickrage to Newsgroups share;
cp -r ../.sickrage /var/hda/files/newsgroups/sickrage-$(date +%Y%m%d%H%M%S);
chown apache:users /var/hda/files/newsgroups/sickrage*;
=== App Start on Boot ===