mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-23 10:40:43 +01:00
Add the new tgz compress format to UFS systems too
This commit is contained in:
@@ -154,7 +154,7 @@ if [ -n "${TXZ_EXPORT}" -o -n "${TGZ_EXPORT}" ] && [ -n "${SAFE_EXPORT}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${bastille_zfs_enable}" ]; then
|
if [ -z "${bastille_zfs_enable}" ]; then
|
||||||
if [ -n "${GZIP_EXPORT}" -o -n "${RAW_EXPORT}" -o "${SAFE_EXPORT}" -o "${OPT_ZSEND}" ]; then
|
if [ -n "${GZIP_EXPORT}" -o -n "${RAW_EXPORT}" -o -n "${SAFE_EXPORT}" -o "${OPT_ZSEND}" = "-Rv" ]; then
|
||||||
error_exit "Options --gz, --raw, --safe, --verbose are valid for ZFS configured systems only."
|
error_exit "Options --gz, --raw, --safe, --verbose are valid for ZFS configured systems only."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -487,6 +487,9 @@ jail_import() {
|
|||||||
if [ "${FILE_EXT}" = ".txz" ]; then
|
if [ "${FILE_EXT}" = ".txz" ]; then
|
||||||
info "Extracting files from '${TARGET}' archive..."
|
info "Extracting files from '${TARGET}' archive..."
|
||||||
tar -Jxf "${bastille_backupsdir}/${TARGET}" -C "${bastille_jailsdir}"
|
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
|
elif [ "${FILE_EXT}" = ".tar.gz" ]; then
|
||||||
# Attempt to import/configure foreign/ezjail container
|
# Attempt to import/configure foreign/ezjail container
|
||||||
info "Extracting files from '${TARGET}' archive..."
|
info "Extracting files from '${TARGET}' archive..."
|
||||||
|
|||||||
Reference in New Issue
Block a user