[Pkg-samba-maint] r837 - branches/samba4
Steinar H. Gunderson
sesse at costa.debian.org
Tue Jan 3 14:40:09 UTC 2006
Author: sesse
Date: 2006-01-03 14:40:08 +0000 (Tue, 03 Jan 2006)
New Revision: 837
Modified:
branches/samba4/changelog
branches/samba4/samba.postinst
Log:
Only provision in samba.postinst if we're being called with "configure".
Modified: branches/samba4/changelog
===================================================================
--- branches/samba4/changelog 2006-01-03 14:38:39 UTC (rev 836)
+++ branches/samba4/changelog 2006-01-03 14:40:08 UTC (rev 837)
@@ -12,6 +12,7 @@
* Attempt to upgrade from Samba 3 if that's what the user tries to do.
* Copy upgrade script into /usr/lib/samba/setup.
* Run "make quicktest" on build.
+ * Only provision in samba.postinst if we're being called with "configure".
-- Steinar H. Gunderson <sesse at debian.org> Tue, 3 Jan 2006 15:19:55 +0100
Modified: branches/samba4/samba.postinst
===================================================================
--- branches/samba4/samba.postinst 2006-01-03 14:38:39 UTC (rev 836)
+++ branches/samba4/samba.postinst 2006-01-03 14:40:08 UTC (rev 837)
@@ -2,25 +2,27 @@
set -e
-. /usr/share/debconf/confmodule
+if [ "$1" = "configure" ]; then
+ . /usr/share/debconf/confmodule
-db_get samba/setup-pdc || true
+ db_get samba/setup-pdc || true
-if [ "$RET" = "true" ]; then
- db_get samba/realm
- REALM="$RET"
+ if [ "$RET" = "true" ]; then
+ db_get samba/realm
+ REALM="$RET"
- db_get samba/domain
- DOMAIN="$RET"
+ db_get samba/domain
+ DOMAIN="$RET"
- db_get samba/password
- PASSWORD="$RET"
+ db_get samba/password
+ PASSWORD="$RET"
- db_stop
+ db_stop
- /usr/lib/samba/setup/provision --realm="$REALM" --domain="$DOMAIN" --adminpass="$PASSWORD"
-else
- db_stop
+ /usr/lib/samba/setup/provision --realm="$REALM" --domain="$DOMAIN" --adminpass="$PASSWORD"
+ else
+ db_stop
+ fi
fi
#DEBHELPER#
More information about the Pkg-samba-maint
mailing list