Skip to content

Commit

Permalink
(feat) Add .setup_done killswitch
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Oct 28, 2024
1 parent 9888771 commit 500f790
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,12 @@ if [ "$CMD" = "backup" ]; then
elif [ "$CMD" = "setup" ]; then
echo "Make sure we are NOT overwriting a previously done setup"
if [ -f "./.setup_done" ]; then
echo "🛑✋ ABORTING: Setup seems to already exists";
exit 66;
fi
echo "Make sure required folder exists"
mkdir -p ./config
mkdir -p ./config/project
Expand Down Expand Up @@ -646,6 +652,10 @@ elif [ "$CMD" = "install" ]; then
echo "Make sure craft runs"
"${PHP_EXEC}" ./craft
echo "Mark setup as done"
echo "done: $GITHUB_RUN_ID" > ./.setup_done
chmod 444 ./.setup_done || true
echo "gg;wp 👍"
else
Expand Down

0 comments on commit 500f790

Please sign in to comment.