From 735958f8f9809bd20e1d5ba5f0292ccebe1a76ad Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Sat, 23 Jun 2018 22:41:55 -0600 Subject: [PATCH] Add i386 support --- install.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.bash b/install.bash index 848ce4d..745dd03 100644 --- a/install.bash +++ b/install.bash @@ -15,6 +15,11 @@ sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Download and install gitea + # Check if architecure is i386 and download Gitea +if [ -n "$(uname -a | grep i386)" ]; then + sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-386" +fi + # Check if architecure is x86 and download Gitea if [ -n "$(uname -a | grep x86_64)" ]; then sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64"