-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from ot4i/11.0.0.12-r1
11.0.0.12-r1 update
- Loading branch information
Showing
18 changed files
with
2,234 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# © Copyright IBM Corporation 2018. | ||
# | ||
# All rights reserved. This program and the accompanying materials | ||
# are made available under the terms of the Eclipse Public License v2.0 | ||
# which accompanies this distribution, and is available at | ||
# http://www.eclipse.org/legal/epl-v20.html | ||
|
||
if [ -z "$MQSI_VERSION" ]; then | ||
source /opt/ibm/ace-11/server/bin/mqsiprofile | ||
fi | ||
|
||
if ls /home/aceuser/initial-config/bar_overrides/*.properties >/dev/null 2>&1; then | ||
for propertyFile in /home/aceuser/initial-config/bar_overrides/*.properties | ||
do | ||
mqsiapplybaroverride -b /home/aceuser/initial-config/bars/barfile.bar -p $propertyFile -r | ||
echo $propertyFile >> /home/aceuser/initial-config/bar_overrides/logs.txt | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package configuration | ||
|
||
import ( | ||
"io" | ||
"io/ioutil" | ||
"os" | ||
) | ||
|
||
var ioutilReadFile = ioutil.ReadFile | ||
var osMkdirAll = os.MkdirAll | ||
var ioutilWriteFile = ioutil.WriteFile | ||
var osOpenFile = os.OpenFile | ||
var ioCopy = io.Copy | ||
var osStat = os.Stat | ||
var osIsNotExist = os.IsNotExist | ||
|
||
var internalAppendFile = func(fileName string, fileContent []byte, filePerm os.FileMode) error { | ||
|
||
file, err := os.OpenFile(fileName, os.O_APPEND|os.O_CREATE|os.O_WRONLY, filePerm) | ||
|
||
if err != nil { | ||
return err | ||
} | ||
|
||
defer file.Close() | ||
|
||
_, err = file.Write(fileContent) | ||
|
||
if err == nil { | ||
err = file.Sync() | ||
} | ||
|
||
if err != nil { | ||
return err | ||
} | ||
|
||
return nil | ||
} |
Oops, something went wrong.