forked from unimatrix/web
Publish sealed Gazette milestones through existing news delivery and show realm news on Exchange
This commit is contained in:
parent
27d3bef1b6
commit
0631a76cb9
1 changed files with 169 additions and 11 deletions
|
|
@ -28,6 +28,8 @@ def main():
|
|||
print(json.dumps({'plan':True,'version':metadata['version'],'assets':len(data)}));return
|
||||
if os.geteuid()!=0:raise RuntimeError('Deployment operator required')
|
||||
previous={name:(DESTINATION/name).read_bytes() for name in ASSETS}
|
||||
if previous == data:
|
||||
print(json.dumps({'applied':False,'unchanged':True,'version':metadata['version']}));return
|
||||
try:
|
||||
for name,content in data.items():replace(DESTINATION/name,content)
|
||||
# Check the actual nginx response, including its symlink policy. A file
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff