Skip to content

Commit

Permalink
Fix permissions for tmp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
joe4dev committed Oct 4, 2023
1 parent d395c73 commit 35e1df2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/localstack/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,13 @@ func main() {
log.Fatal("Failed to download code archives: " + err.Error())
}

// fix permissions of layers directory (if it exists) for better AWS parity
// fix permissions of the layers directory for better AWS parity
if err := ChmodRecursively("/opt", 0755); err != nil {
log.Warnln("Could not change file mode of directory /opt:", err)
log.Warnln("Could not change file mode recursively of directory /opt:", err)
}
// fix permissions of the tmp directory for better AWS parity
if err := ChmodRecursively("/tmp", 0700); err != nil {
log.Warnln("Could not change file mode recursively of directory /tmp:", err)
}

// parse CLI args
Expand Down

0 comments on commit 35e1df2

Please sign in to comment.