Skip to content

Commit b51faa9

Browse files
committed
Add SUSE-specific paths and build flag
1 parent 9cc5dc1 commit b51faa9

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

ecs-init/config/default_system_paths.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// +build !suse
2+
13
// Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
24
//
35
// Licensed under the Apache License, Version 2.0 (the "License"). You may

ecs-init/config/suse_system_paths.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// +build suse
2+
3+
// Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+
//
5+
// Licensed under the Apache License, Version 2.0 (the "License"). You may
6+
// not use this file except in compliance with the License. A copy of the
7+
// License is located at
8+
//
9+
// http://aws.amazon.com/apache2.0/
10+
//
11+
// or in the "license" file accompanying this file. This file is distributed
12+
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13+
// express or implied. See the License for the specific language governing
14+
// permissions and limitations under the License.
15+
16+
package config
17+
18+
const (
19+
cgroupDirectory = "/sys/fs/cgroup"
20+
execDriverDirectory = "/var/run/docker/execdriver"
21+
)

0 commit comments

Comments
 (0)