diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 21:02:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 21:02:16 +0000 |
commit | 9f6be71d917eefcbe5871132e7378a048ab568cd (patch) | |
tree | 7882c01e6b169b9449c685c3dda25e814bf8e0fb | |
parent | Updating. (diff) | |
download | progress-linux-tools-9f6be71d917eefcbe5871132e7378a048ab568cd.tar.xz progress-linux-tools-9f6be71d917eefcbe5871132e7378a048ab568cd.zip |
Updating.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-x | bin/debian-chroot | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/debian-chroot b/bin/debian-chroot index 6d0c776..22e4d4c 100755 --- a/bin/debian-chroot +++ b/bin/debian-chroot @@ -283,7 +283,7 @@ EOF ;; esac - chown 1000:1000 "${CHROOT}/build/.bash_history" + chown 1000:1000 "${CHROOT}/build/.bash_history"* echo "build ALL=NOPASSWD: ALL" >> "${CHROOT}/etc/sudoers" ;; @@ -408,6 +408,12 @@ EOF ;; esac + if [ -e "${CHROOT}/build/.bash_history.orig" ] + then + rm -f "${CHROOT}/build/.bash_history" + cp -a "${CHROOT}/build/.bash_history.orig" "${CHROOT}/build/.bash_history" + fi + rsync -av --delete "${CHROOT}"/ "${CHROOT}".orig mount proc-$(basename ${CHROOT}) "${CHROOT}/proc" -t proc |