Skip to content

Commit

Permalink
fix(SSH Helper): Fix file system bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
a645162 committed Nov 23, 2024
1 parent 77cb103 commit 01c87dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from config import global_config

__version__ = "1.7.2"
__version__ = "1.7.3"


def get_version_path() -> str:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def restore_ssh_zip(zip_path: str):
target_public_key_path = \
os.path.join(system_ssh_dir, private_key_name + ".pub")

os.rename(key_pair.private_key_path, target_private_key_path)
os.rename(key_pair.public_key_path, target_public_key_path)
shutil.move(key_pair.private_key_path, target_private_key_path)
shutil.move(key_pair.public_key_path, target_public_key_path)

os.chmod(target_private_key_path, 0o600)
os.chmod(target_public_key_path, 0o644)
Expand Down

0 comments on commit 01c87dd

Please sign in to comment.