mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Set USER env variable so installation can complete successfully.
This commit is contained in:
		@@ -48,11 +48,11 @@ do_start()
 | 
				
			|||||||
	#   0 if daemon has been started
 | 
						#   0 if daemon has been started
 | 
				
			||||||
	#   1 if daemon was already running
 | 
						#   1 if daemon was already running
 | 
				
			||||||
	#   2 if daemon could not be started
 | 
						#   2 if daemon could not be started
 | 
				
			||||||
	sh -c "start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile \\
 | 
						sh -c "USER=$USER start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile \\
 | 
				
			||||||
			--test --chdir $WORKINGDIR --chuid $USER \\
 | 
								--test --chdir $WORKINGDIR --chuid $USER \\
 | 
				
			||||||
			--exec $DAEMON -- $DAEMON_ARGS > /dev/null \\
 | 
								--exec $DAEMON -- $DAEMON_ARGS > /dev/null \\
 | 
				
			||||||
			|| return 1"
 | 
								|| return 1"
 | 
				
			||||||
	sh -c "start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile \\
 | 
						sh -c "USER=$USER start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile \\
 | 
				
			||||||
			--background --chdir $WORKINGDIR --chuid $USER \\
 | 
								--background --chdir $WORKINGDIR --chuid $USER \\
 | 
				
			||||||
			--exec $DAEMON -- $DAEMON_ARGS \\
 | 
								--exec $DAEMON -- $DAEMON_ARGS \\
 | 
				
			||||||
			|| return 2"
 | 
								|| return 2"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user