1
0
mirror of https://github.com/rancher/os.git synced 2025-09-07 01:31:06 +00:00

Make docker-compose command available on console

This commit is contained in:
Olli Janatuinen
2020-11-30 21:18:58 +02:00
parent c25bb67fd2
commit 2c8a40b547
3 changed files with 25 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ const (
sourceDirectory = "/engine"
destDirectory = "/var/lib/rancher/engine"
dockerCompletionFName = "completion"
dockerComposeFName = "docker-compose"
)
var (
@@ -99,6 +100,10 @@ func copyBinaries(source, dest string) error {
if err := os.Chmod(destFile, 0644); err != nil {
return err
}
} else if file.Name() == dockerComposeFName {
if err := os.Chmod(destFile, 0755); err != nil {
return err
}
} else {
if err := os.Chmod(destFile, 0751); err != nil {
return err