Skip to content

Commit

Permalink
remove last line from 40-create-ghcred.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hizclick committed May 15, 2024
1 parent 2e41245 commit 745fed4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions 40-create-ghcred.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#/bin/sh

# Set default value for VUE_APP_PUBLIC_PATH if not provided
# Get VUE_APP_PUBLIC_PATH from Docker endpoint
Expand All @@ -22,10 +22,9 @@ ln -s /usr/share/nginx/html /usr/share/nginx/html/"$VUE_APP_PUBLIC_PATH"
sed -i "s+/myAppPlaceholder+$VUE_APP_PUBLIC_PATH+g" /usr/share/nginx/html/index.html
sed -i "s+/myAppPlaceholder+$VUE_APP_PUBLIC_PATH+g" /usr/share/nginx/html/js/app.*.js

Create nginx config from environment variables
# *prevent envsubst from killing nginx vars with 'tr' and '@'*
# create nginx config from evironment# *prevent envsubst from killing nginx vars with 'tr' and '@'*
cat <<EOT | envsubst | tr '@' '$' >/GH_OAUTH_CLIENT.conf
set @CLIENT_ID $CLIENT_ID;
set @CLIENT_SECRET $CLIENT_SECRET;
set @CALL_BACK $CALL_BACK;
EOT

0 comments on commit 745fed4

Please sign in to comment.