projects
/
grml-debootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not try to create /etc/debootstrap if it already exists
[grml-debootstrap.git]
/
grml-debootstrap
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
64b46d5
..
0d2efbb
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-779,7
+779,7
@@
preparechroot() {
cp $VERBOSE $CONFFILES/chroot-script $MNTPOINT/bin/chroot-script
chmod 755 $MNTPOINT/bin/chroot-script
cp $VERBOSE $CONFFILES/chroot-script $MNTPOINT/bin/chroot-script
chmod 755 $MNTPOINT/bin/chroot-script
-
mkdir $MNTPOINT
/etc/debootstrap/
+
[ -d "$MNTPOINT"/etc/debootstrap/ ] || mkdir "$MNTPOINT"
/etc/debootstrap/
# make sure we have our files for later use via chroot-script
cp $VERBOSE $CONFFILES/config $MNTPOINT/etc/debootstrap/
# make sure we have our files for later use via chroot-script
cp $VERBOSE $CONFFILES/config $MNTPOINT/etc/debootstrap/