From 9680e5098693f5e75b1d3c0269bdb4ce8c8ae102 Mon Sep 17 00:00:00 2001 From: wangxiaopeng Date: Fri, 20 May 2016 02:54:01 -0400 Subject: [PATCH] issue 1158: fix the syncfile issue for ubuntu 16.04 1. change the shebang for syncfiles postscripts to be /bin/bash from /bin/sh 2. fix the syntax error in the xCAT/RSYNC.pm --- perl-xCAT/xCAT/RSYNC.pm | 2 +- xCAT/postscripts/syncfiles | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/RSYNC.pm b/perl-xCAT/xCAT/RSYNC.pm index b3779c03e..52b0725f4 100644 --- a/perl-xCAT/xCAT/RSYNC.pm +++ b/perl-xCAT/xCAT/RSYNC.pm @@ -129,7 +129,7 @@ sub remote_copy_command # if only syncing the service node or # (no postscripts and no append lines) then do not # get update file notification - if (($::SYNCSN == 1) || ((!(defined @::postscripts)) && (!(defined @::appendlines)) && (!(defined @::mergelines)))) { + if (($::SYNCSN == 1) || ((!(@::postscripts)) && (!(@::appendlines)) && (!(@::mergelines)))) { $sync_opt .= '-Lprogtz '; } else { $sync_opt .= '-Liprogtz --out-format=%f%L '; # add notify of update diff --git a/xCAT/postscripts/syncfiles b/xCAT/postscripts/syncfiles index d8835a08f..488571e2a 100644 --- a/xCAT/postscripts/syncfiles +++ b/xCAT/postscripts/syncfiles @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2009 EPL license http://www.eclipse.org/legal/epl-v10.html ##################################################### #