Troubls Shooting: Corrected Archives path

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2023-09-22 20:54:48 +09:00
parent c4217ec8b1
commit 39473902ea
1 changed files with 3 additions and 4 deletions

View File

@ -21,7 +21,6 @@ HOME_FOLDER = str(Path(BSTRING_ISO_CONFIGS).expanduser())
WPCHROOT = "/fusato/config/includes.chroot" WPCHROOT = "/fusato/config/includes.chroot"
BINARYPTH = "/fusato/config/includes.binary" BINARYPTH = "/fusato/config/includes.binary"
BOOTSTRAP = "/fusato/config/includes.bootstrap" BOOTSTRAP = "/fusato/config/includes.bootstrap"
ARCHIVES = "/fusato/config/archives"
FUSATOCONFIG = "/fusato/config" FUSATOCONFIG = "/fusato/config"
# Set up the logging format # Set up the logging format
@ -41,7 +40,7 @@ class Archive:
self.sbase = sbase self.sbase = sbase
self.sarch = sarch self.sarch = sarch
src_archive = ('/multimedia/' + self.sbase + self.sarch,) src_archive = ('/multimedia/' + self.sbase + self.sarch,)
des_archive =('/config/archives',) des_archive =('/archives',)
# Archives Folders. # Archives Folders.
archive_src_q = collections.deque(src_archive) archive_src_q = collections.deque(src_archive)
archive_des_q = collections.deque(des_archive) archive_des_q = collections.deque(des_archive)
@ -51,10 +50,10 @@ class Archive:
des = archive_des_q.popleft() des = archive_des_q.popleft()
logger.info(MSG_COPY + HOME_FOLDER + source) logger.info(MSG_COPY + HOME_FOLDER + source)
shutil.copytree(HOME_FOLDER + source, shutil.copytree(HOME_FOLDER + source,
HOME_FOLDER + ARCHIVES + des, HOME_FOLDER + FUSATOCONFIG + des,
dirs_exist_ok = True dirs_exist_ok = True
) )
logger.info(MSG_FIN + HOME_FOLDER + ARCHIVES + des) logger.info(MSG_FIN + HOME_FOLDER + FUSATOCONFIG + des)
class ChrootFolders: class ChrootFolders: