summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall-itzks-workstation54
1 files changed, 32 insertions, 22 deletions
diff --git a/install-itzks-workstation b/install-itzks-workstation
index fd8105b..1bbd52a 100755
--- a/install-itzks-workstation
+++ b/install-itzks-workstation
@@ -76,29 +76,22 @@ function configure_puppet() {
pidof systemd && systemctl enable puppet || :
# and start the client service...
invoke-rc.d puppet start
-
- echo
- echo '! FERTIG
- Die Installation
- - des Basissystems mit ITZKS-Anpassungen
- - des Puppet-Agents
- ist abgeschlossen.'
- echo
-}
-
-function do_not_configure_puppet() {
-echo
-echo '! FERTIG
-Die Installation des Basissystems mit ITZKS-Anpassungen ist abgeschlossen.
-Es muss nur noch vor Ort die Anbindung an puppet vorgenommen werden.'
-echo
+ export pythonconfig=1
}
-# Add user locadm if not already there
-if [ -z $"(getent passwd locadm)" ]; then
- adduser --gecos "Local Administrator" locadm
- adduser locadm sudo
-fi
+#function do_not_configure_puppet() {
+#echo
+#echo '! FERTIG
+#Die Installation des Basissystems mit ITZKS-Anpassungen ist abgeschlossen.
+#Es muss nur noch vor Ort die Anbindung an puppet vorgenommen werden.'
+#echo
+#}
+#
+## Add user locadm if not already there
+#if [ -z $"(getent passwd locadm)" ]; then
+# adduser --gecos "Local Administrator" locadm
+# adduser locadm sudo
+#fi
# Enlarge root-fs - OLD
#
@@ -334,8 +327,25 @@ apt_install_if_not puppet
configure_puppet
;;
*)
- do_not_configure_puppet
+ export pythonconfig=0
;;
esac
unset answer
+# Echo final script statement for user
+
+if [ $pythonconfig -eq "1" ]; then
+ echo
+ echo '! FERTIG
+ Die Installation
+ - des Basissystems mit ITZKS-Anpassungen
+ - des Puppet-Agents
+ ist abgeschlossen.'
+ echo
+else
+ echo
+ echo '! FERTIG
+ Die Installation des Basissystems mit ITZKS-Anpassungen ist abgeschlossen.'
+ echo
+fi
+unset pythonconfig \ No newline at end of file