Skip to content

Commit

Permalink
UI: Fixes UI start script
Browse files Browse the repository at this point in the history
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
SM43 authored and tekton-robot committed Apr 28, 2021
1 parent 0966e95 commit 3da81da
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions ui/image/start.sh
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;'

0 comments on commit 3da81da

Please sign in to comment.