]> gitweb.fluxo.info Git - puppet-bootstrap.git/commitdiff
Deploy: fixes
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 26 Oct 2015 16:27:23 +0000 (14:27 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 26 Oct 2015 16:27:23 +0000 (14:27 -0200)
bin/deploy

index a61c86f572ea7c22c4439b793ca358424f938fe6..0b036d8be0a52951d15a56b631ccbd957d67c822 100755 (executable)
@@ -45,7 +45,7 @@ if [ -d "$BASEDIR/puppet/files/patches/$DIST" ]; then
   # Only apply if needed
   # Thanks https://unix.stackexchange.com/questions/55780/check-if-a-file-or-folder-has-been-patched-already
   for patch in `ls $BASEDIR/puppet/files/patches/$DIST`; do
-    patch -p0 -N --dry-run --silent < $BASEDIR/puppet/files/patches/$DIST/$patch 2> /dev/null
+    patch -p0 -N --dry-run --silent < $BASEDIR/puppet/files/patches/$DIST/$patch &> /dev/null
     # If the patch has not been applied then the $? which is the exit status
     # for last command would have a success status code = 0
     if [ "$?" == "0" ]; then
@@ -58,4 +58,4 @@ fi
 
 # Run puppet apply
 PUPPET_OPTS="--confdir=$BASEDIR/puppet --modulepath=$BASEDIR/puppet/modules"
-$SUDO LC_ALL=C puppet apply $PUPPET_OPTS $PUPPET_MANIFEST"
+LC_ALL=C $SUDO puppet apply $PUPPET_OPTS $PUPPET_MANIFEST