Skip to content

Commit

Permalink
[1.x] root-shell added to bin/sail (#33)
Browse files Browse the repository at this point in the history
* root-shell added to bin/sail

* Update sail

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
sdbruder and taylorotwell authored Dec 29, 2020
1 parent e318009 commit 968c5c2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/sail
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,18 @@ if [ $# -gt 0 ]; then
sail_is_not_running
fi

# Initiate a root user Bash shell within the application container...
elif [ "$1" == "root-shell" ] ; then
shift 1

if [ "$EXEC" == "yes" ]; then
docker-compose exec \
"$APP_SERVICE" \
bash
else
sail_is_not_running
fi

# Share the site...
elif [ "$1" == "share" ]; then
shift 1
Expand Down

0 comments on commit 968c5c2

Please sign in to comment.