A noopt a variable does not set
[mirror/dsa-wiki.git] / input / howto / puppet-setup.mdwn
index 1d2ec88..e15a7ba 100644 (file)
@@ -12,13 +12,13 @@ adjusted.
 
         : __handel__ && puppetd -t --environment=production
 
-        : ::client:: && apt-get update &&
+        : ::client:: && me=$(hostname -f) && [ "$me" != "${me%debian.org}" ] && apt-get update &&
                 apt-get install --no-install-recommends puppet libaugeas-ruby1.8 augeas-lenses lsb-release &&
                 /etc/init.d/puppet stop &&
                 (puppetd -t || true ) &&
                 cd /var/lib/puppet/ssl/certificate_requests &&
                 echo sha256sum output: && echo &&
-                sha256sum $(hostname -f).pem &&
+                sha256sum $me.pem &&
                 echo && echo && cd /
 
 This will not overwrite anything yet, since handel has not signed the