From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga ./conga.spec.in.in luci/site/luci/bin/ru ...
Date: 18 Aug 2006 20:01:14 -0000 [thread overview]
Message-ID: <20060818200114.13636.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-08-18 20:01:14
Modified files:
. : conga.spec.in.in
luci/site/luci/bin: runzope.in
luci/utils : luci_admin
Log message:
Conga: Hopefully last set of specfile complaints
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&r1=1.32&r2=1.33
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/bin/runzope.in.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/utils/luci_admin.diff?cvsroot=cluster&r1=1.47&r2=1.48
--- conga/conga.spec.in.in 2006/08/18 13:59:00 1.32
+++ conga/conga.spec.in.in 2006/08/18 20:01:14 1.33
@@ -97,7 +97,7 @@
Requires: zope
Requires: plone >= 2.5
%endif
-Requires: openssl mailcap stunnel
+Requires: grep openssl mailcap stunnel
Requires: sed util-linux
Requires: ricci = %{version}-%{release}
@@ -127,10 +127,10 @@
%{_localstatedir}/lib/luci
%pre -n luci
-if [ "B`/bin/grep luci\:x /etc/group`" == "B" ]; then
+if ! /bin/grep luci\:x /etc/group 2>&1 >/dev/null; then
/usr/sbin/groupadd -r -f luci >/dev/null 2>&1
fi
-if [ "B`/bin/grep luci\:x /etc/passwd`" == "B" ]; then
+if ! /bin/grep luci\:x /etc/passwd 2>&1 >/dev/null; then
/usr/sbin/useradd -r -M -s /sbin/nologin -d /var/lib/luci -g luci luci >/dev/null 2>&1
fi
@@ -146,7 +146,7 @@
/usr/sbin/luci_admin restore >/dev/null 2>&1
fi
# set initial admin password (if not already set) to random value
-if [ "B`cat /var/lib/luci/.admin_password_has_been_set`" != "BTrue" ]; then
+if ! /bin/grep True /var/lib/luci/.admin_password_has_been_set; then
/usr/sbin/luci_admin password --random >/dev/null 2>&1
fi
if [ "$LUCI_RUNNING" == "0" ]; then
@@ -244,10 +244,10 @@
%{_libexecdir}/ricci-modlog
%pre -n ricci
-if [ "B`/bin/grep ricci\:x /etc/group`" == "B" ]; then
+if ! /bin/grep ricci\:x /etc/group 2>&1 >/dev/null; then
/usr/sbin/groupadd -r -f ricci >/dev/null 2>&1
fi
-if [ "B`/bin/grep ricci\:x /etc/passwd`" == "B" ]; then
+if ! /bin/grep ricci\:x /etc/passwd 2>&1 >/dev/null; then
/usr/sbin/useradd -r -M -s /sbin/nologin -d /var/lib/ricci -g ricci ricci >/dev/null 2>&1
fi
--- conga/luci/site/luci/bin/runzope.in 2006/08/18 13:28:45 1.2
+++ conga/luci/site/luci/bin/runzope.in 2006/08/18 20:01:14 1.3
@@ -20,7 +20,7 @@
ZOPE_RUN="$SOFTWARE_HOME/Zope2/Startup/run.py"
-if [ "B`cat $INSTANCE_HOME/.admin_password_has_been_set`" == "BTrue" ]; then
+if /bin/grep True /var/lib/luci/.admin_password_has_been_set; then
exec "$PYTHON" "$ZOPE_RUN" -C "$CONFIG_FILE" "$@"
else
echo ""
--- conga/luci/utils/luci_admin 2006/08/18 18:03:36 1.47
+++ conga/luci/utils/luci_admin 2006/08/18 20:01:14 1.48
@@ -97,7 +97,7 @@
return True
def get_default_passwd_reset_flag():
- return open(LUCI_ADMIN_SET_PATH, 'r').read(16) == 'True'
+ return open(LUCI_ADMIN_SET_PATH, 'r').read(16).strip() == 'True'
def read_passwd(prompt, confirm_prompt):
reply other threads:[~2006-08-18 20:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060818200114.13636.qmail@sourceware.org \
--to=kupcevic@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).