From: Andy Witter Date: Sat, 13 Jan 2018 15:20:45 +0000 (-0500) Subject: disable apparmor for installation X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7a570ae635db6b642867434a418cbb8009dbb4ae;p=contrib%2Fpines%2Fgenasys.git disable apparmor for installation --- diff --git a/templates/setup-head.sh b/templates/setup-head.sh index 533b827..c2d773b 100755 --- a/templates/setup-head.sh +++ b/templates/setup-head.sh @@ -24,6 +24,32 @@ if [ ! -d debs ] ### Check if debs exist. exit 3 fi +### Due to bug in apparmor profile for ejabberd we disable apparmor for installation +echo;echo;echo;echo +echo "Due to bug in apparmor profile for ejabberd we disable apparmor for installation" +echo "Stopping and tearing down apparmor..." +sleep 3 +echo;echo "stopping apparmor" +if ! service apparmor stop +then + echo;echo;echo "Failed to stop apparmor" + echo "please run: service apparmor stop" + read -p "then press [Enter] to continue: " ENTER +else + echo done. + sleep 1 +fi + +echo;echo "tearing down apparmor" +if ! service apparmor teardown +then + echo;echo;echo "Failed to teardown apparmor" + echo "Please run: service apparmor teardown" + read -p "then press [Enter] to continue: " ENTER +else + echo done. + sleep 1 +fi Prep_DB_9_X () { #Prepare the database schema /openils/bin/eg_db_config --service all --create-schema --create-offline --create-database \ diff --git a/templates/setup.sh b/templates/setup.sh index 30bf272..a5824a1 100755 --- a/templates/setup.sh +++ b/templates/setup.sh @@ -59,6 +59,33 @@ echo "Starting Setup....." sleep 5 echo +### Due to bug in apparmor profile for ejabberd we disable apparmor for installation +echo;echo;echo;echo +echo "Due to bug in apparmor profile for ejabberd we disable apparmor for installation" +echo "Stopping and tearing down apparmor..." +sleep 3 +echo;echo "stopping apparmor" +if ! service apparmor stop +then + echo;echo;echo "Failed to stop apparmor" + echo "please run: service apparmor stop" + read -p "then press [Enter] to continue: " ENTER +else + echo done. + sleep 1 +fi + +echo;echo "tearing down apparmor" +if ! service apparmor teardown +then + echo;echo;echo "Failed to teardown apparmor" + echo "Please run: service apparmor teardown" + read -p "then press [Enter] to continue: " ENTER +else + echo done. + sleep 1 +fi + ### Set hostname. echo "Setting Hostname" sleep 2