diff options
author | Benjamin Schlüter <bschlueter@posteo.de> | 2018-11-13 10:31:36 +0100 |
---|---|---|
committer | Benjamin Schlüter <bschlueter@posteo.de> | 2018-11-13 10:31:36 +0100 |
commit | d6329d5e396fec86c6457fd4f95d8c6574e1dfa2 (patch) | |
tree | 7be3cca13df3af0df1274c4549cd7d1a8e002e18 | |
parent | bbb687eac78ad161a702b14dc2c436110f92436c (diff) | |
download | itzks-install-script-d6329d5e396fec86c6457fd4f95d8c6574e1dfa2.tar.gz itzks-install-script-d6329d5e396fec86c6457fd4f95d8c6574e1dfa2.tar.bz2 itzks-install-script-d6329d5e396fec86c6457fd4f95d8c6574e1dfa2.zip |
Add command for different final echo statement depending on pre-set variable.
-rwxr-xr-x | install-itzks-workstation | 54 |
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 |