We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dfbcd9 commit d7f8ed5Copy full SHA for d7f8ed5
1 file changed
subcmd/nginx.go
@@ -91,7 +91,7 @@ func ActionNginxVhostPHP(nvf *nginxVhostFactory) cli.ActionFunc {
91
if err := os.Chmod(rootDir, 0755); err != nil {
92
return fmt.Errorf("could not set permissions on www root directory %s: %s", rootDir, err)
93
}
94
- // Set www directory owner
+ // Set www directory owner to current user who ran the command
95
uid, err := strconv.Atoi(os.Getenv("SUDO_UID"))
96
if err != nil {
97
return fmt.Errorf("could not get SUDO_UID: %s", err)
0 commit comments