Skip to content

Commit

Permalink
Squash commit with changes for SSM Agent V3
Browse files Browse the repository at this point in the history
  • Loading branch information
Thor-Bjorgvinsson committed Sep 2, 2020
1 parent 2a18841 commit 42f72a3
Show file tree
Hide file tree
Showing 1,452 changed files with 243,147 additions and 44,949 deletions.
8 changes: 4 additions & 4 deletions Config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*-perl-*-

package.Amazon-ssm-agent = {
interfaces = (2.3);
interfaces = (3.0);

deploy = {
generic = true;
Expand All @@ -14,8 +14,8 @@ package.Amazon-ssm-agent = {

build-system = bgo-wrap-make;
build-tools = {
2.3 = {
GoLang = 1.12;
3.0 = {
GoLang = 1.13;
BrazilMakeGo = 1.1;
RIPStaticConfig = 1.4;
};
Expand All @@ -26,7 +26,7 @@ package.Amazon-ssm-agent = {
# Use dependencies instead if you intend for these dependencies to
# be exported to other packages that build against you.
dependencies = {
2.3 = {
3.0 = {
Session-manager-agent-binaries = 1.0;
};
};
Expand Down
6 changes: 6 additions & 0 deletions NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ Copyright (c) 2015 Nathan Osman
Copyright (c) 2015 Loren Segal
**shiena/ansicolor - https://github.com/shiena/ansicolor
Copyright (c) [2014] [shiena]
** go-ps; version v1.0.0 -- https://github.com/mitchellh/go-ps
Copyright (c) 2014 Mitchell Hashimoto
** go-winio; version v0.4.14 go-winio -- https://github.com/microsoft/go-winio
Copyright (c) 2015 Microsoft
**nightlyone/lockfile - https://github.com/nightlyone/lockfile
Copyright (c) [2012] Ingo Oeser

Expand Down Expand Up @@ -113,6 +117,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

=============================

** mangos; version v3.0.0 -- https://github.com/nanomsg/mangos
Copyright 2020 The Mangos Authors
** coreos/go-semver - https://github.com/coreos/go-semver
Copyright 2018 CoreOS, Inc
** go-ini/ini - https://github.com/go-ini/ini
Expand Down
21 changes: 21 additions & 0 deletions Tools/src/checkstyle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ if [[ -n $unformatted ]]; then
exit 1
fi

unformatted=$(gofmt -l `pwd`/core/)
if [[ -n $unformatted ]]; then
echo >&2 "Error: Found files not formatted by gofmt"
for fi in $unformatted; do
echo >&2 $fi
done
echo "Please run 'gofmt -w' for files listed."
exit 1
fi

# run goimports
echo "Try update 'goimports'"
GOPATH=`pwd`/Tools go get golang.org/x/tools/cmd/goimports
Expand All @@ -28,7 +38,18 @@ if [[ -n $unformatted ]]; then
exit 1
fi

unformatted=$(Tools/bin/goimports -l `pwd`/core/)
if [[ -n $unformatted ]]; then
echo >&2 "Error: Found files not formatted by goimports"
for f in $unformatted; do
echo >&2 $f
done
echo "Please run 'goimports -w' for files listed."
exit 1
fi

# run govet
echo "Run 'go vet'"
ln -s `pwd` `pwd`/vendor/src/github.com/aws/amazon-ssm-agent
go vet -composites=false ./agent
go vet -composites=false ./core
4 changes: 3 additions & 1 deletion Tools/src/create_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ mkdir -p ${BGO_SPACE}/bin/debian_amd64/debian/lib/systemd/system/
echo "Copying application files"

cp ${BGO_SPACE}/bin/linux_amd64/amazon-ssm-agent ${BGO_SPACE}/bin/debian_amd64/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_amd64/ssm-agent-worker ${BGO_SPACE}/bin/debian_amd64/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_amd64/ssm-cli ${BGO_SPACE}/bin/debian_amd64/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_amd64/ssm-document-worker ${BGO_SPACE}/bin/debian_amd64/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_amd64/ssm-session-worker ${BGO_SPACE}/bin/debian_amd64/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_amd64/ssm-session-logger ${BGO_SPACE}/bin/debian_amd64/debian/usr/bin/
cd ${BGO_SPACE}/bin/debian_amd64/debian/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-
cd ${BGO_SPACE}/bin/debian_amd64/debian/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-agent-worker; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-
cp ${BGO_SPACE}/seelog_unix.xml ${BGO_SPACE}/bin/debian_amd64/debian/etc/amazon/ssm/seelog.xml.template
cp ${BGO_SPACE}/amazon-ssm-agent.json.template ${BGO_SPACE}/bin/debian_amd64/debian/etc/amazon/ssm/
cp ${BGO_SPACE}/packaging/ubuntu/amazon-ssm-agent.conf ${BGO_SPACE}/bin/debian_amd64/debian/etc/init/
Expand All @@ -32,6 +33,7 @@ echo "Copying debian package config files"

cp ${BGO_SPACE}/RELEASENOTES.md ${BGO_SPACE}/bin/debian_amd64/debian/etc/amazon/ssm/RELEASENOTES.md
cp ${BGO_SPACE}/README.md ${BGO_SPACE}/bin/debian_amd64/debian/etc/amazon/ssm/README.md
cp ${BGO_SPACE}/NOTICE.md ${BGO_SPACE}/bin/debian_amd64/debian/etc/amazon/ssm/
cp ${BGO_SPACE}/Tools/src/LICENSE ${BGO_SPACE}/bin/debian_amd64/debian/usr/share/doc/amazon-ssm-agent/copyright
cp ${BGO_SPACE}/packaging/ubuntu/conffiles ${BGO_SPACE}/bin/debian_amd64/debian/
cp ${BGO_SPACE}/packaging/ubuntu/docs ${BGO_SPACE}/bin/debian_amd64/debian/
Expand Down
4 changes: 3 additions & 1 deletion Tools/src/create_deb_386.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ mkdir -p ${BGO_SPACE}/bin/debian_386/debian/lib/systemd/system/
echo "Copying application files"

cp ${BGO_SPACE}/bin/linux_386/amazon-ssm-agent ${BGO_SPACE}/bin/debian_386/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_386/ssm-agent-worker ${BGO_SPACE}/bin/debian_386/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_386/ssm-cli ${BGO_SPACE}/bin/debian_386/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_386/ssm-document-worker ${BGO_SPACE}/bin/debian_386/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_386/ssm-session-worker ${BGO_SPACE}/bin/debian_386/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_386/ssm-session-logger ${BGO_SPACE}/bin/debian_386/debian/usr/bin/
cd ${BGO_SPACE}/bin/debian_386/debian/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-
cd ${BGO_SPACE}/bin/debian_386/debian/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-agent-worker; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-
cp ${BGO_SPACE}/seelog_unix.xml ${BGO_SPACE}/bin/debian_386/debian/etc/amazon/ssm/seelog.xml.template
cp ${BGO_SPACE}/amazon-ssm-agent.json.template ${BGO_SPACE}/bin/debian_386/debian/etc/amazon/ssm/
cp ${BGO_SPACE}/packaging/ubuntu/amazon-ssm-agent.conf ${BGO_SPACE}/bin/debian_386/debian/etc/init/
Expand All @@ -32,6 +33,7 @@ echo "Copying debian package config files"

cp ${BGO_SPACE}/RELEASENOTES.md ${BGO_SPACE}/bin/debian_386/debian/etc/amazon/ssm/RELEASENOTES.md
cp ${BGO_SPACE}/README.md ${BGO_SPACE}/bin/debian_386/debian/etc/amazon/ssm/README.md
cp ${BGO_SPACE}/NOTICE.md ${BGO_SPACE}/bin/debian_386/debian/etc/amazon/ssm/NOTICE.md
cp ${BGO_SPACE}/Tools/src/LICENSE ${BGO_SPACE}/bin/debian_386/debian/usr/share/doc/amazon-ssm-agent/ssm/copyright
cp ${BGO_SPACE}/packaging/ubuntu/conffiles ${BGO_SPACE}/bin/debian_386/debian/
cp ${BGO_SPACE}/packaging/ubuntu/docs ${BGO_SPACE}/bin/debian_386/debian/
Expand Down
4 changes: 3 additions & 1 deletion Tools/src/create_deb_arm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ mkdir -p ${BGO_SPACE}/bin/debian_arm/debian/lib/systemd/system/
echo "Copying application files"

cp ${BGO_SPACE}/bin/linux_arm/amazon-ssm-agent ${BGO_SPACE}/bin/debian_arm/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm/ssm-agent-worker ${BGO_SPACE}/bin/debian_arm/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm/ssm-document-worker ${BGO_SPACE}/bin/debian_arm/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm/ssm-session-worker ${BGO_SPACE}/bin/debian_arm/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm/ssm-session-logger ${BGO_SPACE}/bin/debian_arm/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm/ssm-cli ${BGO_SPACE}/bin/debian_arm/debian/usr/bin/
cd ${BGO_SPACE}/bin/debian_arm/debian/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-
cd ${BGO_SPACE}/bin/debian_arm/debian/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-agent-worker; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-
cp ${BGO_SPACE}/seelog_unix.xml ${BGO_SPACE}/bin/debian_arm/debian/etc/amazon/ssm/seelog.xml.template
cp ${BGO_SPACE}/amazon-ssm-agent.json.template ${BGO_SPACE}/bin/debian_arm/debian/etc/amazon/ssm/
cp ${BGO_SPACE}/packaging/ubuntu/amazon-ssm-agent.conf ${BGO_SPACE}/bin/debian_arm/debian/etc/init/
Expand All @@ -32,6 +33,7 @@ echo "Copying debian package config files"

cp ${BGO_SPACE}/RELEASENOTES.md ${BGO_SPACE}/bin/debian_arm/debian/etc/amazon/ssm/RELEASENOTES.md
cp ${BGO_SPACE}/README.md ${BGO_SPACE}/bin/debian_arm/debian/etc/amazon/ssm/README.md
cp ${BGO_SPACE}/NOTICE.md ${BGO_SPACE}/bin/debian_arm/debian/etc/amazon/ssm/NOTICE.md
cp ${BGO_SPACE}/Tools/src/LICENSE ${BGO_SPACE}/bin/debian_arm/debian/usr/share/doc/amazon-ssm-agent/copyright
cp ${BGO_SPACE}/packaging/ubuntu/conffiles ${BGO_SPACE}/bin/debian_arm/debian/
cp ${BGO_SPACE}/packaging/ubuntu/docs ${BGO_SPACE}/bin/debian_arm/debian/
Expand Down
4 changes: 3 additions & 1 deletion Tools/src/create_deb_arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ mkdir -p ${BGO_SPACE}/bin/debian_arm64/debian/lib/systemd/system/
echo "Copying application files"

cp ${BGO_SPACE}/bin/linux_arm64/amazon-ssm-agent ${BGO_SPACE}/bin/debian_arm64/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm64/ssm-agent-worker ${BGO_SPACE}/bin/debian_arm64/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm64/ssm-cli ${BGO_SPACE}/bin/debian_arm64/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm64/ssm-document-worker ${BGO_SPACE}/bin/debian_arm64/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm64/ssm-session-worker ${BGO_SPACE}/bin/debian_arm64/debian/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm64/ssm-session-logger ${BGO_SPACE}/bin/debian_arm64/debian/usr/bin/
cd ${BGO_SPACE}/bin/debian_arm64/debian/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-
cd ${BGO_SPACE}/bin/debian_arm64/debian/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-agent-worker; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-
cp ${BGO_SPACE}/seelog_unix.xml ${BGO_SPACE}/bin/debian_arm64/debian/etc/amazon/ssm/seelog.xml.template
cp ${BGO_SPACE}/amazon-ssm-agent.json.template ${BGO_SPACE}/bin/debian_arm64/debian/etc/amazon/ssm/
cp ${BGO_SPACE}/packaging/ubuntu/amazon-ssm-agent.conf ${BGO_SPACE}/bin/debian_arm64/debian/etc/init/
Expand All @@ -32,6 +33,7 @@ echo "Copying debian package config files"

cp ${BGO_SPACE}/RELEASENOTES.md ${BGO_SPACE}/bin/debian_arm64/debian/etc/amazon/ssm/RELEASENOTES.md
cp ${BGO_SPACE}/README.md ${BGO_SPACE}/bin/debian_arm64/debian/etc/amazon/ssm/README.md
cp ${BGO_SPACE}/NOTICE.md ${BGO_SPACE}/bin/debian_arm64/debian/etc/amazon/ssm/NOTICE.md
cp ${BGO_SPACE}/Tools/src/LICENSE ${BGO_SPACE}/bin/debian_arm64/debian/usr/share/doc/amazon-ssm-agent/copyright
cp ${BGO_SPACE}/packaging/ubuntu/conffiles ${BGO_SPACE}/bin/debian_arm64/debian/
cp ${BGO_SPACE}/packaging/ubuntu/docs ${BGO_SPACE}/bin/debian_arm64/debian/
Expand Down
4 changes: 3 additions & 1 deletion Tools/src/create_rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ mkdir -p ${BGO_SPACE}/bin/linux_amd64/linux/var/lib/amazon/ssm/
echo "Copying application files"

cp ${BGO_SPACE}/bin/linux_amd64/amazon-ssm-agent ${BGO_SPACE}/bin/linux_amd64/linux/usr/bin/
cp ${BGO_SPACE}/bin/linux_amd64/ssm-agent-worker ${BGO_SPACE}/bin/linux_amd64/linux/usr/bin/
cp ${BGO_SPACE}/bin/linux_amd64/ssm-document-worker ${BGO_SPACE}/bin/linux_amd64/linux/usr/bin/
cp ${BGO_SPACE}/bin/linux_amd64/ssm-session-worker ${BGO_SPACE}/bin/linux_amd64/linux/usr/bin/
cp ${BGO_SPACE}/bin/linux_amd64/ssm-session-logger ${BGO_SPACE}/bin/linux_amd64/linux/usr/bin/
Expand All @@ -30,9 +31,10 @@ cp ${BGO_SPACE}/seelog_unix.xml ${BGO_SPACE}/bin/linux_amd64/linux/etc/amazon/ss
cp ${BGO_SPACE}/amazon-ssm-agent.json.template ${BGO_SPACE}/bin/linux_amd64/linux/etc/amazon/ssm/
cp ${BGO_SPACE}/RELEASENOTES.md ${BGO_SPACE}/bin/linux_amd64/linux/etc/amazon/ssm/
cp ${BGO_SPACE}/README.md ${BGO_SPACE}/bin/linux_amd64/linux/etc/amazon/ssm/
cp ${BGO_SPACE}/NOTICE.md ${BGO_SPACE}/bin/linux_amd64/linux/etc/amazon/ssm/
cp ${BGO_SPACE}/packaging/linux/amazon-ssm-agent.conf ${BGO_SPACE}/bin/linux_amd64/linux/etc/init/
cp ${BGO_SPACE}/packaging/linux/amazon-ssm-agent.service ${BGO_SPACE}/bin/linux_amd64/linux/etc/systemd/system/
cd ${BGO_SPACE}/bin/linux_amd64/linux/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-
cd ${BGO_SPACE}/bin/linux_amd64/linux/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-agent-worker; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-

echo "Creating the rpm package"

Expand Down
4 changes: 3 additions & 1 deletion Tools/src/create_rpm_386.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ mkdir -p ${BGO_SPACE}/bin/linux_386/linux/var/lib/amazon/ssm/
echo "Copying application files"

cp ${BGO_SPACE}/bin/linux_386/amazon-ssm-agent ${BGO_SPACE}/bin/linux_386/linux/usr/bin/
cp ${BGO_SPACE}/bin/linux_386/ssm-agent-worker ${BGO_SPACE}/bin/linux_386/linux/usr/bin/
cp ${BGO_SPACE}/bin/linux_386/ssm-document-worker ${BGO_SPACE}/bin/linux_386/linux/usr/bin/
cp ${BGO_SPACE}/bin/linux_386/ssm-session-worker ${BGO_SPACE}/bin/linux_386/linux/usr/bin/
cp ${BGO_SPACE}/bin/linux_386/ssm-session-logger ${BGO_SPACE}/bin/linux_386/linux/usr/bin/
Expand All @@ -30,9 +31,10 @@ cp ${BGO_SPACE}/seelog_unix.xml ${BGO_SPACE}/bin/linux_386/linux/etc/amazon/ssm/
cp ${BGO_SPACE}/amazon-ssm-agent.json.template ${BGO_SPACE}/bin/linux_386/linux/etc/amazon/ssm/
cp ${BGO_SPACE}/RELEASENOTES.md ${BGO_SPACE}/bin/linux_386/linux/etc/amazon/ssm/RELEASENOTES.md
cp ${BGO_SPACE}/README.md ${BGO_SPACE}/bin/linux_386/linux/etc/amazon/ssm/README.md
cp ${BGO_SPACE}/NOTICE.md ${BGO_SPACE}/bin/linux_386/linux/etc/amazon/ssm/NOTICE.md
cp ${BGO_SPACE}/packaging/linux/amazon-ssm-agent.conf ${BGO_SPACE}/bin/linux_386/linux/etc/init/
cp ${BGO_SPACE}/packaging/linux/amazon-ssm-agent.service ${BGO_SPACE}/bin/linux_386/linux/etc/systemd/system/
cd ${BGO_SPACE}/bin/linux_386/linux/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-
cd ${BGO_SPACE}/bin/linux_386/linux/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-agent-worker; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-

echo "Creating the rpm package"

Expand Down
4 changes: 3 additions & 1 deletion Tools/src/create_rpm_arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ mkdir -p ${BGO_SPACE}/bin/linux_arm64/linux/var/lib/amazon/ssm/
echo "Copying application files"

cp ${BGO_SPACE}/bin/linux_arm64/amazon-ssm-agent ${BGO_SPACE}/bin/linux_arm64/linux/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm64/ssm-agent-worker ${BGO_SPACE}/bin/linux_arm64/linux/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm64/ssm-document-worker ${BGO_SPACE}/bin/linux_arm64/linux/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm64/ssm-session-worker ${BGO_SPACE}/bin/linux_arm64/linux/usr/bin/
cp ${BGO_SPACE}/bin/linux_arm64/ssm-session-logger ${BGO_SPACE}/bin/linux_arm64/linux/usr/bin/
Expand All @@ -30,9 +31,10 @@ cp ${BGO_SPACE}/seelog_unix.xml ${BGO_SPACE}/bin/linux_arm64/linux/etc/amazon/ss
cp ${BGO_SPACE}/amazon-ssm-agent.json.template ${BGO_SPACE}/bin/linux_arm64/linux/etc/amazon/ssm/
cp ${BGO_SPACE}/RELEASENOTES.md ${BGO_SPACE}/bin/linux_arm64/linux/etc/amazon/ssm/
cp ${BGO_SPACE}/README.md ${BGO_SPACE}/bin/linux_arm64/linux/etc/amazon/ssm/
cp ${BGO_SPACE}/NOTICE.md ${BGO_SPACE}/bin/linux_arm64/linux/etc/amazon/ssm/
cp ${BGO_SPACE}/packaging/linux/amazon-ssm-agent.conf ${BGO_SPACE}/bin/linux_arm64/linux/etc/init/
cp ${BGO_SPACE}/packaging/linux/amazon-ssm-agent.service ${BGO_SPACE}/bin/linux_arm64/linux/etc/systemd/system/
cd ${BGO_SPACE}/bin/linux_arm64/linux/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-
cd ${BGO_SPACE}/bin/linux_arm64/linux/usr/bin/; strip --strip-unneeded amazon-ssm-agent; strip --strip-unneeded ssm-agent-worker; strip --strip-unneeded ssm-cli; strip --strip-unneeded ssm-document-worker; strip --strip-unneeded ssm-session-worker; strip --strip-unneeded ssm-session-logger; cd ~-

echo "Creating the rpm package"

Expand Down
2 changes: 2 additions & 0 deletions Tools/src/create_win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mkdir -p ${PACKAGE_FOLDER}
echo "Copying application files"

cp ${BUILD_FOLDER}/amazon-ssm-agent.exe ${PACKAGE_FOLDER}/amazon-ssm-agent.exe
cp ${BUILD_FOLDER}/ssm-agent-worker.exe ${PACKAGE_FOLDER}/ssm-agent-worker.exe
cp ${BUILD_FOLDER}/ssm-document-worker.exe ${PACKAGE_FOLDER}/ssm-document-worker.exe
cp ${BUILD_FOLDER}/ssm-session-worker.exe ${PACKAGE_FOLDER}/ssm-session-worker.exe
cp ${BUILD_FOLDER}/ssm-session-logger.exe ${PACKAGE_FOLDER}/ssm-session-logger.exe
Expand All @@ -27,6 +28,7 @@ cp ${BGO_SPACE}/amazon-ssm-agent.json.template ${PACKAGE_FOLDER}/amazon-ssm-agen
echo "Copying windows package config files"

cp ${TOOLS_FOLDER}/LICENSE ${PACKAGE_FOLDER}/LICENSE
cp ${BGO_SPACE}/NOTICE.md ${PACKAGE_FOLDER}/NOTICE.md

echo "Constructing the zip package"

Expand Down
2 changes: 2 additions & 0 deletions Tools/src/create_win_386.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mkdir -p ${PACKAGE_FOLDER}
echo "Copying application files"

cp ${BUILD_FOLDER}/amazon-ssm-agent.exe ${PACKAGE_FOLDER}/amazon-ssm-agent.exe
cp ${BUILD_FOLDER}/ssm-agent-worker.exe ${PACKAGE_FOLDER}/ssm-agent-worker.exe
cp ${BUILD_FOLDER}/ssm-document-worker.exe ${PACKAGE_FOLDER}/ssm-document-worker.exe
cp ${BUILD_FOLDER}/ssm-session-worker.exe ${PACKAGE_FOLDER}/ssm-session-worker.exe
cp ${BUILD_FOLDER}/ssm-session-logger.exe ${PACKAGE_FOLDER}/ssm-session-logger.exe
Expand All @@ -27,6 +28,7 @@ cp ${BGO_SPACE}/amazon-ssm-agent.json.template ${PACKAGE_FOLDER}/amazon-ssm-agen
echo "Copying windows package config files"

cp ${TOOLS_FOLDER}/LICENSE ${PACKAGE_FOLDER}/LICENSE
cp ${BGO_SPACE}/NOTICE.md ${PACKAGE_FOLDER}/NOTICE.md

echo "Constructing the zip package"

Expand Down
3 changes: 2 additions & 1 deletion Tools/src/update/linux/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ elif [[ $(systemctl 2> /dev/null) =~ -\.mount ]]; then
$(systemctl start amazon-ssm-agent)
echo "$(systemctl status amazon-ssm-agent)"
else
echo "The amazon-ssm-agent is not supported on this platform. Please visit the documentation for the list of supported platforms"
echo "The amazon-ssm-agent is not supported on this platform. Please visit the documentation for the list of supported platforms" 1>&2
exit 124
fi
3 changes: 2 additions & 1 deletion Tools/src/update/linux/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ elif [[ $(systemctl 2> /dev/null) =~ -\.mount ]]; then
echo "-> Agent is not installed in this instance"
fi
else
echo "The amazon-ssm-agent is not supported on this platform. Please visit the documentation for the list of supported platforms"
echo "The amazon-ssm-agent is not supported on this platform. Please visit the documentation for the list of supported platforms" 1>&2
exit 124
fi
4 changes: 2 additions & 2 deletions Tools/src/update/ubuntu/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ elif [[ "$(cat /proc/1/comm)" == "systemd" ]]; then
systemctl status amazon-ssm-agent

else

echo "The amazon-ssm-agent is not supported on this platform. Please visit the documentation for the list of supported platforms"
echo "The amazon-ssm-agent is not supported on this platform. Please visit the documentation for the list of supported platforms" 1>&2
exit 124
fi
3 changes: 2 additions & 1 deletion Tools/src/update/ubuntu/snap-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ if [[ "$(cat /proc/1/comm)" == "systemd" ]]; then
snap start amazon-ssm-agent
fi
else
error_exit '[ERROR] Snap install is not supported on this instance. Please uninstall the snap agent and try again'
echo '[ERROR] Snap install is not supported on this instance. Please uninstall the snap agent and try again' 1>&2
exit 124
fi

3 changes: 2 additions & 1 deletion Tools/src/update/ubuntu/snap-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ if [[ "$(cat /proc/1/comm)" == "systemd" ]]; then
echo "-> Agent is not running in the instance"
fi
else
echo "The amazon-ssm-agent is not supported on this platform. Please visit the documentation for the list of supported platforms"
echo "The amazon-ssm-agent is not supported on this platform. Please visit the documentation for the list of supported platforms" 1>&2
exit 124
fi
Loading

0 comments on commit 42f72a3

Please sign in to comment.