Use sudo for permissions.

This commit is contained in:
Josh Mudge 2018-06-28 15:35:30 -06:00
parent 03bd5b5011
commit 9a00313a6a

View File

@ -34,6 +34,7 @@ sudo adduser gitea --home /opt/gitea --disabled-password --gecos ''
# Make some other potentially useful directories for that user/group # Make some other potentially useful directories for that user/group
sudo mkdir -p /opt/gitea/ /var/log/gitea sudo mkdir -p /opt/gitea/ /var/log/gitea
sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea
# Download and install gitea # Download and install gitea
@ -61,10 +62,7 @@ fi
sudo chmod +x /opt/gitea/gitea-$VER sudo chmod +x /opt/gitea/gitea-$VER
rm -f /opt/gitea/gitea rm -f /opt/gitea/gitea
ln -sf gitea-$VER /opt/gitea/gitea sudo ln -sf gitea-$VER /opt/gitea/gitea
sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea
# Download and install the gitea.service for systemd # Download and install the gitea.service for systemd
sudo curl -fsSL -o /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/dist/etc/systemd/system/gitea.service sudo curl -fsSL -o /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/dist/etc/systemd/system/gitea.service