mirror of
https://github.com/CMiksche/gitea-auto-update
synced 2026-10-24 21:51:14 +02: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:
1 parent
ef91988312
commit
52bf4cb835
1 file changed
+2
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user