Skip to content

Commit

Permalink
Ensure run.sh is present in the container by copying it if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ysdragon committed Dec 27, 2024
1 parent 5e7ab58 commit 553069e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,11 @@ if [ ! -e "$HOME/.installed" ]; then
/bin/bash "/install.sh" || exit 1
fi

# Check if run.sh exists in the container, if not copy it again
if [ ! -f "$HOME/run.sh" ]; then
cp /run.sh "$HOME/run.sh"
chmod +x "$HOME/run.sh"
fi

# Run the startup helper script
bash /helper.sh

0 comments on commit 553069e

Please sign in to comment.