mirror of https://github.com/tteck/Proxmox.git
				
				
				
			
						commit
						fee5819332
					
				| 
						 | 
					@ -23,20 +23,16 @@ msg_ok "Installed Dependencies"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Installing Gitea"
 | 
					msg_info "Installing Gitea"
 | 
				
			||||||
RELEASE=$(wget -q https://github.com/go-gitea/gitea/releases/latest -O - | grep "title>Release" | cut -d " " -f 4 | sed 's/^v//')
 | 
					RELEASE=$(wget -q https://github.com/go-gitea/gitea/releases/latest -O - | grep "title>Release" | cut -d " " -f 4 | sed 's/^v//')
 | 
				
			||||||
$STD wget -q https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64
 | 
					wget -q https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64
 | 
				
			||||||
mv gitea* /usr/local/bin/gitea
 | 
					mv gitea* /usr/local/bin/gitea
 | 
				
			||||||
chmod +x /usr/local/bin/gitea
 | 
					chmod +x /usr/local/bin/gitea
 | 
				
			||||||
msg_info "Installed Gitea"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
msg_info "Creating Gitea user"
 | 
					 | 
				
			||||||
adduser --system --group --disabled-password --home /etc/gitea gitea > /dev/null
 | 
					adduser --system --group --disabled-password --home /etc/gitea gitea > /dev/null
 | 
				
			||||||
 | 
					 | 
				
			||||||
msg_info "Creating directory structure"
 | 
					 | 
				
			||||||
mkdir -p /var/lib/gitea/{custom,data,log}
 | 
					mkdir -p /var/lib/gitea/{custom,data,log}
 | 
				
			||||||
chown -R gitea:gitea /var/lib/gitea/
 | 
					chown -R gitea:gitea /var/lib/gitea/
 | 
				
			||||||
chmod -R 750 /var/lib/gitea/
 | 
					chmod -R 750 /var/lib/gitea/
 | 
				
			||||||
chown root:gitea /etc/gitea
 | 
					chown root:gitea /etc/gitea
 | 
				
			||||||
chmod 770 /etc/gitea
 | 
					chmod 770 /etc/gitea
 | 
				
			||||||
 | 
					msg_info "Installed Gitea"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Creating Service"
 | 
					msg_info "Creating Service"
 | 
				
			||||||
cat <<EOF >/etc/systemd/system/gitea.service
 | 
					cat <<EOF >/etc/systemd/system/gitea.service
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue