Merge pull request #51 from jeblair/master
Add option not to run bash after execing stack.sh
This commit is contained in:
commit
65bb9a9345
6
stack.sh
6
stack.sh
@ -69,7 +69,11 @@ if [[ $EUID -eq 0 ]]; then
|
|||||||
chown -R stack /home/stack/$THIS_DIR
|
chown -R stack /home/stack/$THIS_DIR
|
||||||
echo "Running the script as stack in 3 seconds..."
|
echo "Running the script as stack in 3 seconds..."
|
||||||
sleep 3
|
sleep 3
|
||||||
exec su -c "cd /home/stack/$THIS_DIR/; bash stack.sh; bash" stack
|
if [[ "$SHELL_AFTER_RUN" != "no" ]]; then
|
||||||
|
exec su -c "cd /home/stack/$THIS_DIR/; bash stack.sh; bash" stack
|
||||||
|
else
|
||||||
|
exec su -c "cd /home/stack/$THIS_DIR/; bash stack.sh" stack
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user