Add the new tgz compress format to UFS systems too

This commit is contained in:
JRGTH
2021-07-08 17:41:27 -04:00
parent 17ea19bf65
commit d73645facb
2 changed files with 4 additions and 1 deletions

View File

@@ -487,6 +487,9 @@ jail_import() {
if [ "${FILE_EXT}" = ".txz" ]; then
info "Extracting files from '${TARGET}' archive..."
tar -Jxf "${bastille_backupsdir}/${TARGET}" -C "${bastille_jailsdir}"
elif [ "${FILE_EXT}" = ".tgz" ]; then
info "Extracting files from '${TARGET}' archive..."
tar -xf "${bastille_backupsdir}/${TARGET}" -C "${bastille_jailsdir}"
elif [ "${FILE_EXT}" = ".tar.gz" ]; then
# Attempt to import/configure foreign/ezjail container
info "Extracting files from '${TARGET}' archive..."