Skip to content

Commit 66a06ef

Browse files
committed
test PathExists
1 parent 7565a9a commit 66a06ef

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ amazon-linux-rpm-integrated: .amazon-linux-rpm-integrated-done
390390
./scripts/update-version.sh
391391
cp packaging/generic-rpm-integrated/amazon-ecs-init.spec amazon-ecs-init.spec
392392
cp packaging/generic-rpm-integrated/ecs.service ecs.service
393+
cp packaging/generic-rpm-integrated/ecs.path ecs.path
393394
cp packaging/generic-rpm-integrated/amazon-ecs-volume-plugin.service amazon-ecs-volume-plugin.service
394395
cp packaging/generic-rpm-integrated/amazon-ecs-volume-plugin.socket amazon-ecs-volume-plugin.socket
395396
tar -czf ./sources.tgz ecs-init scripts misc agent amazon-ecs-cni-plugins amazon-vpc-cni-plugins agent-container Makefile VERSION GO_VERSION

packaging/generic-rpm-integrated/amazon-ecs-init.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ ExclusiveArch: x86_64 aarch64
2727

2828
Source0: sources.tgz
2929
Source1: ecs.service
30-
Source2: amazon-ecs-volume-plugin.service
31-
Source3: amazon-ecs-volume-plugin.socket
30+
Source2: ecs.path
31+
Source3: amazon-ecs-volume-plugin.service
32+
Source4: amazon-ecs-volume-plugin.socket
3233

3334
BuildRequires: systemd
3435
Requires: systemd
@@ -64,6 +65,7 @@ install -m %{no_exec_perm} %{agent_image} %{buildroot}%{_cachedir}/ecs/
6465
mkdir -p %{buildroot}%{_sharedstatedir}/ecs/data
6566

6667
install -m %{no_exec_perm} -D %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}/ecs.service
68+
install -m %{no_exec_perm} -D %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}/ecs.path
6769
install -m %{no_exec_perm} -D %{SOURCE2} $RPM_BUILD_ROOT/%{_unitdir}/amazon-ecs-volume-plugin.service
6870
install -m %{no_exec_perm} -D %{SOURCE3} $RPM_BUILD_ROOT/%{_unitdir}/amazon-ecs-volume-plugin.socket
6971

@@ -78,6 +80,7 @@ install -m %{no_exec_perm} -D %{SOURCE3} $RPM_BUILD_ROOT/%{_unitdir}/amazon-ecs-
7880
%{_cachedir}/ecs/state
7981
%dir %{_sharedstatedir}/ecs/data
8082
%{_unitdir}/ecs.service
83+
%{_unitdir}/ecs.path
8184
%{_unitdir}/amazon-ecs-volume-plugin.service
8285
%{_unitdir}/amazon-ecs-volume-plugin.socket
8386

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Path]
2+
PathExists=/var/lib/ecs/state

0 commit comments

Comments
 (0)