add arm support

This commit is contained in:
AJ ONeal 2017-11-21 07:56:34 +00:00
parent 4cfb4132b4
commit ef079dd29b
1 changed files with 7 additions and 1 deletions

View File

@ -12,7 +12,13 @@ sudo mkdir -p /opt/gitea/ /var/log/gitea
sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea
# Download and install gitea # Download and install gitea
sudo wget -O /opt/gitea/gitea https://dl.gitea.io/gitea/1.0.1/gitea-1.0.1-linux-amd64 my_os=linux
my_arch=amd64
sys_arch="$(uname -m)"
if [ $(echo $sys_arch | grep arm7) ]; then
my_arch=arm-7
fi
sudo wget -O /opt/gitea/gitea https://dl.gitea.io/gitea/1.0.1/gitea-1.0.1-$my_os-$my_arch
sudo chmod +x /opt/gitea/gitea sudo chmod +x /opt/gitea/gitea
# Download and install the gitea.service for systemd # Download and install the gitea.service for systemd