diff options
-rwxr-xr-x | ezjail-admin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin index 3190e7b..0399a1b 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -727,7 +727,7 @@ archive) | |||
727 | [ -z "${ezjail_archive}" ] && ezjail_archive="${ezjail_safename}-`date +%Y%m%d%H%M.%S`.tar.bz2" | 727 | [ -z "${ezjail_archive}" ] && ezjail_archive="${ezjail_safename}-`date +%Y%m%d%H%M.%S`.tar.bz2" |
728 | 728 | ||
729 | # prepend archive directory | 729 | # prepend archive directory |
730 | ezjail_archive="${ezjail_archivedir%/}"/"${ezjail_archive}" | 730 | ezjail_archive="${ezjail_archivedir:-`pwd -P`}"/"${ezjail_archive}" |
731 | 731 | ||
732 | case ${ezjail_archive} in | 732 | case ${ezjail_archive} in |
733 | *.tar.gz|*.tgz) ;; | 733 | *.tar.gz|*.tgz) ;; |
@@ -735,7 +735,7 @@ archive) | |||
735 | esac; | 735 | esac; |
736 | 736 | ||
737 | # TODO: tar cpf${ezjail_taroption} ${ezjail_archive} --atime-preserve --one-file-system ${ezjail_config} -C ${ezjail_root} | 737 | # TODO: tar cpf${ezjail_taroption} ${ezjail_archive} --atime-preserve --one-file-system ${ezjail_config} -C ${ezjail_root} |
738 | cd ${ezjail_root} || exerr "Error: can't cd to ${ezjail_root} | 738 | cd ${ezjail_root} || exerr "Error: can't cd to ${ezjail_root}." |
739 | pax -wXtz -x ustar -f ${ezjail_archive} -s/^/ezjail\// . | 739 | pax -wXtz -x ustar -f ${ezjail_archive} -s/^/ezjail\// . |
740 | 740 | ||
741 | ;; | 741 | ;; |