1
0
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:
Ian Walton
2019-09-03 14:26:58 -04:00
parent ef91988312
commit 52bf4cb835

View File

@@ -67,6 +67,8 @@ class Download:
# moving temp file to gtfile location # moving temp file to gtfile location
cmd = 'mv ' + self.tmpDir + 'gitea-' + self.githubVersion + '-' + self.gtSystem + ' ' + self.gtFile cmd = 'mv ' + self.tmpDir + 'gitea-' + self.githubVersion + '-' + self.gtSystem + ' ' + self.gtFile
os.system(cmd) os.system(cmd)
cmd = 'chmod +x ' + self.gtFile
os.system(cmd)
def checkAndExtract(self): def checkAndExtract(self):
os.chdir(self.tmpDir) os.chdir(self.tmpDir)