#!/bin/bash

VERSION="1"

. /usr/share/univention-appcenter/joinscripthelper.sh

joinscript_init
# apache config
apache_cfg="/etc/apache2/ucs-sites.conf.d/$APP.conf"
[ -e "$apache_cfg" ] && rm "$apache_cfg" && service apache2 reload

ucr unset mysql/config/mysqld/lower_case_table_names \
  mysql/config/mysqld/transaction-isolation
invoke-rc.d mysql reload

ucs_removeServiceFromLocalhost "${SERVICE}" "$@"

joinscript_remove_script_from_status_file "$APP"

exit 0