Skip to contentSkip to conversation

conga/luci site/Makefile site/luci/bin/runzope ...

Cluster-devel [email protected] 1 participant 1 message Aug 18, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-08-18 13:28:45

Modified files:
luci/site : Makefile
luci/site/luci/bin: runzope.in
luci/utils : luci_admin
Added files:
luci/site/luci : .admin_password_has_been_set

Log message:
Under certain circumstances, default luci password would not get reset. Disable luci startup in that case.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/Makefile.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/.admin_password_has_been_set.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/bin/runzope.in.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/utils/luci_admin.diff?cvsroot=cluster&r1=1.45&r2=1.46

luci/site/Makefile +3 -0
@@ -39,6 +39,9 @@
 
 
 install:
+	install -d ${DESTDIR}/var/lib/luci
+	install -m 0640 luci/.admin_password_has_been_set ${DESTDIR}/var/lib/luci/
+
 	install -d ${DESTDIR}/var/lib/luci/bin
 #	install `find luci/bin -maxdepth 1 -type f` ${DESTDIR}/var/lib/luci/bin
 	install luci/bin/runzope ${DESTDIR}/var/lib/luci/bin

/cvs/cluster/conga/luci/site/luci/.admin_password_has_been_set,v --> standard output revision 1.1

- renamed from luci/site/luci/.admin_password_has_been_set +1 -0
@@ -0,0 +1 @@
+False
luci/site/luci/bin/runzope.in +13 -1
@@ -19,4 +19,16 @@
 
 ZOPE_RUN="$SOFTWARE_HOME/Zope2/Startup/run.py"
 
-exec "$PYTHON" "$ZOPE_RUN" -C "$CONFIG_FILE" "$@"
+
+if [ "B`cat $INSTANCE_HOME/.admin_password_has_been_set`" == "BTrue" ]; then
+    exec "$PYTHON" "$ZOPE_RUN" -C "$CONFIG_FILE" "$@"
+else 
+    echo ""
+    echo ""
+    echo "luci \'admin\' password has to be changed before server is allowed to start"
+    echo "To do so, execute (as root): " 
+    echo -e "\tluci_admin password"
+    echo ""
+    echo ""
+    exit 1
+fi
luci/utils/luci_admin +121 -62

312 lines not on this page · raw message