| 
				
			 | 
			
			
				@@ -6714,19 +6714,13 @@ quit" > $INSTALL_DIR/batch.sql 
			 | 
		
	
		
			
			| 
				6714
			 | 
			
				6714
			 | 
			
			
				   shred -zu $INSTALL_DIR/batch.sql 
			 | 
		
	
		
			
			| 
				6715
			 | 
			
				6715
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				6716
			 | 
			
				6716
			 | 
			
			
				   chown -R git:git /home/git 
			 | 
		
	
		
			
			| 
				6717
			 | 
			
				
			 | 
			
			
				-  cp $GOPATH/src/github.com/gogits/gogs/scripts/systemd/gogs.service /etc/systemd/ 
			 | 
		
	
		
			
			| 
				6718
			 | 
			
				
			 | 
			
			
				-  sed -i 's|#After=mysqld.service|After=mysqld.service|g' /etc/systemd/gogs.service 
			 | 
		
	
		
			
			| 
				6719
			 | 
			
				
			 | 
			
			
				-  systemd restart gogs 
			 | 
		
	
		
			
			| 
				6720
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				6721
			 | 
			
				
			 | 
			
			
				-  #cp $GOPATH/src/github.com/gogits/gogs/scripts/init/debian/gogs /etc/init.d/ 
			 | 
		
	
		
			
			| 
				6722
			 | 
			
				
			 | 
			
			
				-  #sed -i 's/# Required-Start:    $syslog $network/# Required-Start:    $syslog $network $local_fs nginx/g' /etc/init.d/gogs 
			 | 
		
	
		
			
			| 
				6723
			 | 
			
				
			 | 
			
			
				-  #sed -i 's/# Required-Stop:     $syslog/# Required-Stop:     $syslog $local_fs/g' /etc/init.d/gogs 
			 | 
		
	
		
			
			| 
				6724
			 | 
			
				
			 | 
			
			
				-  #sed -i 's|WORKINGDIR=.*|WORKINGDIR=/home/git/go/src/github.com/gogits/gogs|g' /etc/init.d/gogs 
			 | 
		
	
		
			
			| 
				6725
			 | 
			
				
			 | 
			
			
				-  #chown git:git /etc/init.d/gogs 
			 | 
		
	
		
			
			| 
				6726
			 | 
			
				
			 | 
			
			
				-  #chmod ug+x /etc/init.d/gogs 
			 | 
		
	
		
			
			| 
				6727
			 | 
			
				
			 | 
			
			
				-  #update-rc.d gogs defaults 30 70 
			 | 
		
	
		
			
			| 
				6728
			 | 
			
				
			 | 
			
			
				-  #service gogs start 
			 | 
		
	
		
			
			| 
				6729
			 | 
			
				
			 | 
			
			
				-  #systemctl daemon-reload 
			 | 
		
	
		
			
			| 
				
			 | 
			
				6717
			 | 
			
			
				+  cp $GOPATH/src/github.com/gogits/gogs/scripts/systemd/gogs.service /etc/systemd/system 
			 | 
		
	
		
			
			| 
				
			 | 
			
				6718
			 | 
			
			
				+  sed -i 's|#After=mysqld.service|After=mysqld.service|g' /etc/systemd/system/gogs.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				6719
			 | 
			
			
				+  sed -i "s|WorkingDirectory=.*|WorkingDirectory=$GOPATH/src/github.com/gogits/gogs|g" /etc/systemd/system/gogs.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				6720
			 | 
			
			
				+  sed -i "s|ExecStart=.*|ExecStart=$GOPATH/src/github.com/gogits/gogs/gogs web|g" /etc/systemd/system/gogs.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				6721
			 | 
			
			
				+  systemctl enable gogs 
			 | 
		
	
		
			
			| 
				
			 | 
			
				6722
			 | 
			
			
				+  systemctl daemon-reload 
			 | 
		
	
		
			
			| 
				
			 | 
			
				6723
			 | 
			
			
				+  systemctl restart gogs 
			 | 
		
	
		
			
			| 
				6730
			 | 
			
				6724
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				6731
			 | 
			
				6725
			 | 
			
			
				   if [ ! -d /var/www/$GIT_DOMAIN_NAME ]; then 
			 | 
		
	
		
			
			| 
				6732
			 | 
			
				6726
			 | 
			
			
				       mkdir /var/www/$GIT_DOMAIN_NAME 
			 |