mirror of
https://github.com/CMiksche/gitea-auto-update
synced 2025-12-10 07:57:23 +01:00
fix: Make downloaded binary executable.
Current gitea releases do not ship with the binary in the archive executable. This results in the service failing to start after updating. This commit ensures the binary is always executable.
This commit is contained in:
@@ -67,6 +67,8 @@ class Download:
|
||||
# moving temp file to gtfile location
|
||||
cmd = 'mv ' + self.tmpDir + 'gitea-' + self.githubVersion + '-' + self.gtSystem + ' ' + self.gtFile
|
||||
os.system(cmd)
|
||||
cmd = 'chmod +x ' + self.gtFile
|
||||
os.system(cmd)
|
||||
|
||||
def checkAndExtract(self):
|
||||
os.chdir(self.tmpDir)
|
||||
|
||||
Reference in New Issue
Block a user