-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
#!/bin/bash | ||
|
||
sleep 2 | ||
export HOME=/home/container | ||
cd /home/container | ||
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` | ||
MODIFIED_STARTUP=$(eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')) | ||
|
||
# Make internal Docker IP address available to processes. | ||
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` | ||
export INTERNAL_IP=$(ip route get 1 | awk '{print $NF;exit}') | ||
|
||
# Copy run.sh to /home/container | ||
cp /run.sh "$HOME/run.sh" | ||
|
||
# Make run.sh executable. | ||
chmod +x "$HOME/run.sh" | ||
|
||
# Run the VPS Installer | ||
bash /install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters