diff options
author | erdgeist <erdgeist@erdgeist.org> | 2007-09-29 04:07:01 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2007-09-29 04:07:01 +0000 |
commit | 9064f3e18b05ba496fa819ae42e2a85e5998eb1c (patch) | |
tree | c7055b14511e947c57fba3cd202c6aed66f63234 | |
parent | fe1cec69fed6cfe4e86bbbdd0d8690bd2585a80e (diff) |
We'll be using pax to archive
-rwxr-xr-x | ezjail-admin | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ezjail-admin b/ezjail-admin index 4228e1e..3190e7b 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -703,7 +703,7 @@ console) | |||
703 | ######################## ezjail-admin ARCHIVE ######################## | 703 | ######################## ezjail-admin ARCHIVE ######################## |
704 | archive) | 704 | archive) |
705 | # Clean variables, prevent polution | 705 | # Clean variables, prevent polution |
706 | unset ezjail_archive ezjail_force ezjail_taroption | 706 | unset ezjail_archive ezjail_force |
707 | 707 | ||
708 | shift; while getopts :fr:d: arg; do case ${arg} in | 708 | shift; while getopts :fr:d: arg; do case ${arg} in |
709 | f) ezjail_force=${OPTARG};; | 709 | f) ezjail_force=${OPTARG};; |
@@ -730,13 +730,13 @@ archive) | |||
730 | ezjail_archive="${ezjail_archivedir%/}"/"${ezjail_archive}" | 730 | ezjail_archive="${ezjail_archivedir%/}"/"${ezjail_archive}" |
731 | 731 | ||
732 | case ${ezjail_archive} in | 732 | case ${ezjail_archive} in |
733 | *.tar.bz|*.tar.bz2|*.tbz|*.tar.bzip ) ezjail_taroption="j" ;; | 733 | *.tar.gz|*.tgz) ;; |
734 | *.tar.gz|*.tgz|*.tar.gzip) ezjail_taroption="z" ;; | 734 | *) ezjail_archive="${ezjail_archive}.tar.gz" ;; |
735 | *.tar) ;; | ||
736 | *) ezjail_archive="${ezjail_archive}.tar" ;; | ||
737 | esac; | 735 | esac; |
738 | 736 | ||
739 | # 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} | ||
739 | pax -wXtz -x ustar -f ${ezjail_archive} -s/^/ezjail\// . | ||
740 | 740 | ||
741 | ;; | 741 | ;; |
742 | ######################## ezjail-admin CONFIG ######################## | 742 | ######################## ezjail-admin CONFIG ######################## |