summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-30 23:54:52 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-30 23:54:52 +0100
commit7ea64ed97368cca5a0d49ae2b3ec23201d4d6af0 (patch)
treea9608f68b4aa44206fce8b39156172ee47124590
parent345634761239946118efe5d67ac5c5145fca50a5 (diff)
downloaditzks-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-workstation6
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... '