Skip to content

Commit

Permalink
remove redundant platform import and chroot 'bin' dir rockstor#2856
Browse files Browse the repository at this point in the history
  • Loading branch information
phillxnet committed Jun 25, 2024
1 parent 4e656a5 commit bef56a5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/rockstor/system/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import logging
import os
import re
import platform
import shutil
import stat
from shutil import move, copy
Expand Down Expand Up @@ -238,7 +237,6 @@ def rsync_for_sftp(chroot_loc):
Dependencies retrieved via ldd.
"""
user = chroot_loc.split("/")[-1]
run_command([MKDIR, "-p", f"{chroot_loc}/bin"], log=True)
run_command([MKDIR, "-p", f"{chroot_loc}/usr/bin"], log=True)
run_command([MKDIR, "-p", f"{chroot_loc}/lib64"], log=True)
run_command([MKDIR, "-p", f"{chroot_loc}/usr/lib64"], log=True)
Expand Down

0 comments on commit bef56a5

Please sign in to comment.