This commit is contained in:
parent
e32ad2eb19
commit
4271c92d70
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,6 @@ downloads = {
|
||||||
'url': 'https://dl.gitea.io/gitea/{version}/gitea-{version}-linux-amd64'.format(version=node.metadata['gitea']['version']),
|
'url': 'https://dl.gitea.io/gitea/{version}/gitea-{version}-linux-amd64'.format(version=node.metadata['gitea']['version']),
|
||||||
'sha256': node.metadata['gitea']['sha256'],
|
'sha256': node.metadata['gitea']['sha256'],
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'action:chmod_gitea',
|
|
||||||
'svc_systemd:gitea:restart',
|
'svc_systemd:gitea:restart',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -14,7 +13,6 @@ directories = {
|
||||||
'owner': 'git',
|
'owner': 'git',
|
||||||
'mode': '0700',
|
'mode': '0700',
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'action:chmod_gitea',
|
|
||||||
'svc_systemd:gitea:restart',
|
'svc_systemd:gitea:restart',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -24,7 +22,9 @@ actions = {
|
||||||
'chmod_gitea': {
|
'chmod_gitea': {
|
||||||
'command': 'chmod a+x /usr/local/bin/gitea',
|
'command': 'chmod a+x /usr/local/bin/gitea',
|
||||||
'unless': 'test -x /usr/local/bin/gitea',
|
'unless': 'test -x /usr/local/bin/gitea',
|
||||||
'triggered': True,
|
'needs': {
|
||||||
|
'download:/usr/local/bin/gitea',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue