diff options
-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 |