diff options
author | Silvino Silva <silvino@bk.ru> | 2019-03-03 02:46:25 +0000 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2019-03-03 02:46:25 +0000 |
commit | accd5243374fba50577e3e3e80135ed5eef7c324 (patch) | |
tree | a4f4f0aeb3fa3e2c9319963f8a24b7fdacd618e1 | |
parent | d3ff0010a7b7dbd1cf055d04421d91954201efa0 (diff) | |
download | doc-accd5243374fba50577e3e3e80135ed5eef7c324.tar.gz |
fix core scripts backup-ports.sh archive
-rw-r--r-- | core/scripts/backup-ports.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/scripts/backup-ports.sh b/core/scripts/backup-ports.sh index 3e42c49..46fd4c6 100644 --- a/core/scripts/backup-ports.sh +++ b/core/scripts/backup-ports.sh @@ -28,6 +28,7 @@ tar --xattrs -zcpf ${DEST_SYS}/pkg-db.tar.gz \ # archive ports data tar --xattrs -zcpf ${DEST_SYS}/etc_ports.tar.gz \ --directory=/etc/ports \ + . . # must be using gwak instead of sed prt-get listinst -v | sed 's/ /#/g' | sed 's/$/.pkg.tar.gz/g' > ${DEST_SYS}/all-installed.pkg @@ -76,10 +77,9 @@ for filename in /etc/ports/*.git; do done echo "Creating ${DEST_ARC}/${BUILD_NAME}-${BUILD_VERSION}.tar.gz ..." -tar rvf ${DEST_ARC}/${BUILD_NAME}-${BUILD_VERSION}.tar.gz \ - --directory=${DEST_SYS} . - -cd ${DEST_ARC} && tar -zcpf ${BUILD_NAME}-${BUILD_VERSION}.tar.gz ${DEST_SYS}/ +tar --xattrs -zcpf ${DEST_ARC}/${BUILD_NAME}-${BUILD_VERSION}.tar.gz \ + --directory=${DEST_SYS} \ + . echo "Creating links to /usr/ports/installed" rm -r /usr/ports/installed |