Remove useless sudo
This commit is contained in:
parent
f98396fe0a
commit
8a2e6ec1a0
@ -28,10 +28,10 @@ function update_gitea {
|
||||
systemctl stop gitea.service
|
||||
|
||||
# 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
|
||||
sudo chmod +x /usr/local/bin/gitea
|
||||
chmod +x /usr/local/bin/gitea
|
||||
restorecon /usr/local/bin/gitea
|
||||
restorecon /var/lib/gitea/log/gitea.log
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user