Remove useless sudo

This commit is contained in:
adrien 2020-12-29 10:19:53 +01:00
parent f98396fe0a
commit 8a2e6ec1a0

View File

@ -28,10 +28,10 @@ function update_gitea {
systemctl stop gitea.service systemctl stop gitea.service
# download the latest version # download the latest version
sudo curl --location --output /usr/local/bin/gitea --silent --show-error --fail https://dl.gitea.io/gitea/${1}/gitea-${1}-linux-amd64 curl --location --output /usr/local/bin/gitea --silent --show-error --fail https://dl.gitea.io/gitea/${1}/gitea-${1}-linux-amd64
# set the correct permissions # set the correct permissions
sudo chmod +x /usr/local/bin/gitea chmod +x /usr/local/bin/gitea
restorecon /usr/local/bin/gitea restorecon /usr/local/bin/gitea
restorecon /var/lib/gitea/log/gitea.log restorecon /var/lib/gitea/log/gitea.log