[Pkg-voip-commits] r7569 - /mumble-django/trunk/debian/mumble-django-configure

svedrin-guest at alioth.debian.org svedrin-guest at alioth.debian.org
Sun Sep 6 18:25:43 UTC 2009


Author: svedrin-guest
Date: Sun Sep  6 18:25:37 2009
New Revision: 7569

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=7569
Log:
add a command to drop to a shell

Modified:
    mumble-django/trunk/debian/mumble-django-configure

Modified: mumble-django/trunk/debian/mumble-django-configure
URL: http://svn.debian.org/wsvn/pkg-voip/mumble-django/trunk/debian/mumble-django-configure?rev=7569&op=diff
==============================================================================
--- mumble-django/trunk/debian/mumble-django-configure (original)
+++ mumble-django/trunk/debian/mumble-django-configure Sun Sep  6 18:25:37 2009
@@ -61,8 +61,9 @@
 echo " > 1) Detect a new Mumble-Server instance and make it known to Mumble-Django"
 echo "   2) Create a new SuperUser for Mumble-Django's web admin interface"
 echo "      Note: This will be done automatically when you run 1) for the first time."
+echo "   3) Drop to a Python shell."
 
-read -p '#? ' ACTION
+read ACTION
 
 if [ -z "$ACTION" -o "$ACTION" = "1" ]; then
 	echo " Mumble-Server detection"
@@ -73,7 +74,7 @@
 	echo " > 1) Debian default"
 	echo "   2) user defined"
 	
-	read -p '#? ' CHOICE
+	read CHOICE
 	if [ -z "$CHOICE" -o "$CHOICE" = "1" ]; then
 		if [ "$USER" = "root" ]; then
 			/usr/sbin/invoke-rc.d --quiet mumble-server start
@@ -85,6 +86,9 @@
 
 elif [ "$ACTION" = "2" ]; then
 	invoke_manage createsuperuser
+
+elif [ "$ACTION" = "3" ]; then
+	invoke_manage shell
 fi
 echo
 
@@ -97,7 +101,7 @@
 	echo "   1) Yes, reload Apache2."
 	echo " > 2) No, don't do anything."
 	
-	read -p '#? ' ACTION
+	read ACTION
 	
 	if [ "$ACTION" = "1" ]; then
 		/usr/sbin/invoke-rc.d apache2 reload
@@ -112,7 +116,7 @@
 			echo "   1) Yes, uninstall it."
 			echo " > 2) No, don't do anything."
 			
-			read -p '#? ' ACTION
+			read ACTION
 			if [ "$ACTION" = "1" ]; then
 				rm "${MUMBLE_DJANGO_MUNIN}"
 				invoke-rc.d munin-node restart
@@ -127,7 +131,7 @@
 			echo "   1) Yes, install it."
 			echo " > 2) No, don't do anything."
 			
-			read -p '#? ' ACTION
+			read ACTION
 			if [ "$ACTION" = "1" ]; then
 				ln -s "${MUMBLE_DJANGO_INSTDIR}/munin.py" "${MUMBLE_DJANGO_MUNIN}"
 				invoke-rc.d munin-node restart




More information about the Pkg-voip-commits mailing list