tools: register the updater in the normal command path (#24)
Use /usr/local/bin for container updater discovery and print an absolute command path for custom shells. Preserve managed links and operator files; cover shell lookup without sbin. Closes #23
This commit was merged in pull request #24.
This commit is contained in:
@@ -63,7 +63,7 @@ class ContainerUpdateTests(unittest.TestCase):
|
||||
text=True, capture_output=True, check=True)
|
||||
|
||||
def publish(self, version, failure=False):
|
||||
code = "import hashlib, json, tarfile\nfrom pathlib import Path\n"
|
||||
code = "import hashlib, json, tarfile\nfrom pathlib import Path\nUPDATER = Path('/usr/local/bin/finaltoken-update')\n"
|
||||
code += "def provision(manifest, archive):\n"
|
||||
code += " assert hashlib.sha256(archive.read_bytes()).hexdigest() == manifest['sourceSha256']\n"
|
||||
if failure:
|
||||
|
||||
Reference in New Issue
Block a user