2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 11:40:25 +00:00

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
This commit is contained in:
wangxiaopeng
2016-05-20 02:54:01 -04:00
parent f8cea1db80
commit 9680e50986
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# IBM(c) 2009 EPL license http://www.eclipse.org/legal/epl-v10.html
#####################################################
#