#!/bin/bash export TEXTDOMAIN="llxcfg-moodle" remove_moodle() { echo "10" mysql_moodle delete || true echo "40" rm -rf /usr/share/moodle2/* || true echo "75" rm -rf /var/lib/moodle2/* || true echo "85" rm -rf /var/lib/moodle2/.??* || true echo "95" } TIT="`gettext "Delete Moodle"`" MSG="`gettext "This action will destroy all data on your Moodle and may not be recovered. Are you sure?"`" REMOVEFILE="" zenity --question --text="$MSG" --title="$TIT" && REMOVEFILE=1 if [ "${REMOVEFILE}" = "1" ]; then ( remove_moodle | zenity --auto-close --auto-kill --progress ) fi rm /usr/share/n4d/hooks/gesitamanager/gesitaimport.py || true rm /usr/share/n4d/hooks/golem/50_moodle_sync-users.py || true rm /usr/share/n4d/hooks/golem/51_moodle_create-cohorte.py || true zenity --info --text="ok" --title="ok"