diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-01-30 23:54:52 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-01-30 23:54:52 +0100 |
commit | 7ea64ed97368cca5a0d49ae2b3ec23201d4d6af0 (patch) | |
tree | a9608f68b4aa44206fce8b39156172ee47124590 | |
parent | 345634761239946118efe5d67ac5c5145fca50a5 (diff) | |
download | itzks-install-script-7ea64ed97368cca5a0d49ae2b3ec23201d4d6af0.tar.gz itzks-install-script-7ea64ed97368cca5a0d49ae2b3ec23201d4d6af0.tar.bz2 itzks-install-script-7ea64ed97368cca5a0d49ae2b3ec23201d4d6af0.zip |
Only restart puppet if already installed.
-rw-r--r-- | install-itzks-workstation | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/install-itzks-workstation b/install-itzks-workstation index b5f407d..9e46c11 100644 --- a/install-itzks-workstation +++ b/install-itzks-workstation @@ -189,7 +189,11 @@ export HOSTNAME="$myhost" # To be sure restart the following services invoke-rc.d rsyslog restart invoke-rc.d cron restart -invoke-rc.d puppet restart + +# puppet may already be installed from a previous run... +if type -p puppet 1>/dev/null; then + invoke-rc.d puppet restart +fi # Install and enable puppet-agent on client echo '! Puppet-Agent wird installiert... ' |