From 7ea64ed97368cca5a0d49ae2b3ec23201d4d6af0 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 30 Jan 2018 23:54:52 +0100 Subject: Only restart puppet if already installed. --- install-itzks-workstation | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'install-itzks-workstation') 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... ' -- cgit v1.2.3