Restore also the context of the log file

This commit is contained in:
adrien 2020-12-13 17:13:55 +01:00
parent 45cb2af189
commit 5116aa5bbd

View File

@ -33,6 +33,7 @@ function update_gitea {
# set the correct permissions # set the correct permissions
sudo chmod +x /usr/local/bin/gitea sudo chmod +x /usr/local/bin/gitea
restorecon /usr/local/bin/gitea restorecon /usr/local/bin/gitea
restorecon /var/lib/gitea/log/gitea.log
if systemctl start gitea.service if systemctl start gitea.service
then then