File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ func forcePathSeparator(path string) {
136
136
// This check is ignored under Windows since SSH remote login is not the main
137
137
// method to login on Windows.
138
138
func IsRunUserMatchCurrentUser (runUser string ) (string , bool ) {
139
- if IsWindows || SSH .StartBuiltinServer || ignoreCheckRunUser {
139
+ if IsWindows || SSH .StartBuiltinServer {
140
140
return "" , true
141
141
}
142
142
@@ -260,7 +260,7 @@ func loadRunModeFrom(rootCfg ConfigProvider) {
260
260
IsProd = strings .EqualFold (RunMode , "prod" )
261
261
// Does not check run user when the install lock is off.
262
262
installLock := rootCfg .Section ("security" ).Key ("INSTALL_LOCK" ).MustBool (false )
263
- if installLock {
263
+ if installLock && ! ignoreCheckRunUser {
264
264
currentUser , match := IsRunUserMatchCurrentUser (RunUser )
265
265
if ! match {
266
266
log .Fatal ("Expect user '%s' but current user is: %s" , RunUser , currentUser )
You can’t perform that action at this time.
0 commit comments