Skip to content

Commit 17f1b6b

Browse files
committed
Update fix_bootstrap_symlinks.sh
1 parent 9392726 commit 17f1b6b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

fix_bootstrap_symlinks.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33

44
set JBROOT $(find /var/containers/Bundle/Application -maxdepth 1 -name ".jbroot-*")
55

6+
if test -z "$JBROOT"
7+
echo "error: jbroot dir not found"
8+
exit 1
9+
end
10+
11+
rm $JBROOT/.jbroot 2>/dev/null || true
12+
rm $JBROOT/bin/.jbroot 2>/dev/null || true
13+
rm $JBROOT/usr/bin/.jbroot 2>/dev/null || true
14+
15+
ln -sf . $JBROOT/.jbroot
16+
ln -sf ../.jbroot $JBROOT/bin/.jbroot
17+
ln -sf ../../.jbroot $JBROOT/usr/bin/.jbroot
618
ln -sf .jbroot/usr/bin/dash $JBROOT/bin/sh
719
ln -sf .jbroot/usr/bin/dash $JBROOT/usr/bin/sh
820

0 commit comments

Comments
 (0)