refs #505 fix typo in symlink

ogboot_installer
Luis Gerardo Romero Garcia 2024-07-29 15:17:35 +00:00
parent 5b6bc76d62
commit 8dd7bb79e0
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ TFTP_OPTIONS="--secure"
symlink_target = f"{INSTALL_OGBOOT_TARGET}/tftpboot"
logger.info(f"Creating symbolic link from {TFTPCFGDIR} to {symlink_target}")
if not os.path.exists(symlink_target):
os.symlink(TFTPCFGDIR, symlink_targetnstaller/ogboot_installer.py)
os.symlink(TFTPCFGDIR, symlink_target)
os.lchown(symlink_target, pwd.getpwnam("tftp").pw_uid, pwd.getpwnam("ogboot").pw_gid)
else:
logger.warning(f"The symbolic link already exists: {symlink_target}")