-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes the line endings in script due to which script use to fail on cluster. command: sed -i -e 's/\r$//' image/start.sh Signed-off-by: Shivam Mukhade <[email protected]>
- Loading branch information
1 parent
0966e95
commit 3da81da
Showing
1 changed file
with
30 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
#!//bin/bash | ||
set -e -u -o pipefail | ||
|
||
CONFIG_JS=/usr/share/nginx/html/config.js | ||
echo "Current ENV" | ||
echo '----------------------------------------------' | ||
cat $CONFIG_JS | ||
echo '..............................................' | ||
ls -l $CONFIG_JS | ||
echo "whoami: $(id)" | ||
echo '----------------------------------------------' | ||
|
||
cat <<-EOF > $CONFIG_JS | ||
window.config = { | ||
API_URL: '$API_URL', | ||
GH_CLIENT_ID: '$GH_CLIENT_ID', | ||
API_VERSION: '$API_VERSION', | ||
}; | ||
EOF | ||
|
||
echo "Modified ENV" | ||
cat $CONFIG_JS | ||
echo '----------------------------------------------' | ||
|
||
|
||
echo Starting Nginx | ||
exec nginx -g 'daemon off;' | ||
|
||
#!//bin/bash | ||
set -e -u -o pipefail | ||
|
||
CONFIG_JS=/usr/share/nginx/html/config.js | ||
echo "Current ENV" | ||
echo '----------------------------------------------' | ||
cat $CONFIG_JS | ||
echo '..............................................' | ||
ls -l $CONFIG_JS | ||
echo "whoami: $(id)" | ||
echo '----------------------------------------------' | ||
|
||
cat <<-EOF > $CONFIG_JS | ||
window.config = { | ||
API_URL: '$API_URL', | ||
GH_CLIENT_ID: '$GH_CLIENT_ID', | ||
API_VERSION: '$API_VERSION', | ||
}; | ||
EOF | ||
|
||
echo "Modified ENV" | ||
cat $CONFIG_JS | ||
echo '----------------------------------------------' | ||
|
||
|
||
echo Starting Nginx | ||
exec nginx -g 'daemon off;' | ||
|