Skip to content

Commit

Permalink
modify inst.sh to work better with bootstrapping with oninstall scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
niaow committed Nov 14, 2017
1 parent 1410218 commit 73d40aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ if [ ! -z "$ROOTFS" ]; then
if [ ! -d "$ROOTFS" ]; then
fail "$ROOTFS does not exist or is not a directory"
fi
else
export ROOTFS=/
fi

if [ -z "$LPKGDIR" ]; then
Expand Down Expand Up @@ -132,7 +134,7 @@ if [ -e "$tmpdir/.oninstall" ]; then
if [ $update -eq 1 ]; then
its=update
fi
"$tmpdir/.oninstall" $its || fail "onInstall script returned error code $?" 3
"$tmpdir/.oninstall" $its $ROOTFS || fail "onInstall script returned error code $?" 3
fi

# delete old files (if applicable)
Expand Down

0 comments on commit 73d40aa

Please sign in to comment.