Skip to content

Commit

Permalink
chore:update install release
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasVon2021 committed Nov 8, 2024
1 parent dd02993 commit 987ccd2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions script/install_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ def main():
if os.path.exists(source_dir) and os.path.isdir(source_dir):
cmd = "cp -R /mnt/exec/release/config /tmp"
subprocess.check_output(cmd, shell = True, cwd=gArgs.releasepath )
source_package = '/usr/bin/blikvm/package.json'
if os.path.exists(source_package) :
cmd = "cp /usr/bin/blikvm/package.json /tmp/config"
subprocess.check_output(cmd, shell = True, cwd=gArgs.releasepath )
cmd = "systemctl disable kvmd-janus && systemctl disable kvmd-hid && systemctl disable kvmd-main\
&& systemctl disable kvmd-video && bash install-kvmd-web.sh && cp package.json /usr/bin/blikvm/package.json"
subprocess.check_output(cmd, shell = True, cwd=gArgs.releasepath )
Expand All @@ -171,8 +175,8 @@ def main():
local_config = json.load(f)
if 'version' in local_config:
version = local_config['version']
if compare_versions(version, '1.4.9'):
merge_and_save_config('/tmp/config/package.json', '/mnt/exec/release/config/package.json')
if compare_versions(version, 'v1.4.9'):
merge_and_save_config('/tmp/config/user.json', '/mnt/exec/release/config/user.json')


else:
Expand Down
2 changes: 1 addition & 1 deletion web_src/web_client
2 changes: 1 addition & 1 deletion web_src/web_server
Submodule web_server updated 1 files
+10 −1 config/app.json

0 comments on commit 987ccd2

Please sign in to comment.