Publish v119 update safeguards and yichya Xray bootstrap fixes
This commit is contained in:
1 parent
730b54c939
commit
5956daa8c2
73 files changed
+980
-306
No files matched your search
@@ -148,7 +148,7 @@ def prepare():
|
||||
if changed:
|
||||
atomic(TARGET, original, 0o755)
|
||||
restart()
|
||||
revision = digest(original) if b'HUB_LOADED_REVISION =' in original else ''
|
||||
revision = digest(original) if b'HUB_LOADED_REVISION' in original else ''
|
||||
if not healthy(revision):
|
||||
raise RuntimeError('Previous file restored but service health is not confirmed. Backup: ' + str(ROOT / 'before.py'))
|
||||
cleanup_test()
|
||||
@@ -194,7 +194,7 @@ def restore():
|
||||
raise RuntimeError('Test backup validation failed. Nothing changed.')
|
||||
atomic(TARGET, original, 0o755)
|
||||
restart()
|
||||
revision = digest(original) if b'HUB_LOADED_REVISION =' in original else ''
|
||||
revision = digest(original) if b'HUB_LOADED_REVISION' in original else ''
|
||||
if not healthy(revision):
|
||||
raise RuntimeError('Previous file restored but service health is not confirmed. Backup was kept.')
|
||||
cleanup_test()
|
||||
|
||||
Reference in new issue
Block a user