/
welcome-message.sh
23 lines (14 loc) · 884 Bytes
/
welcome-message.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e
WELCOME_MESSAGE="
👋 Welcome to the \"PayPal Standard Checkout Integration Example\"
🛠️ Your environment is fully setup with all the required software.
🚀 Once you rename the \".env.example\" file to \".env\" and update \"PAYPAL_CLIENT_ID\" and \"PAYPAL_CLIENT_SECRET\", the checkout page will automatically open in the browser after the server is restarted."
ALTERNATE_WELCOME_MESSAGE="
👋 Welcome to the \"PayPal Standard Checkout Integration Example\"
🛠️ Your environment is fully setup with all the required software.
🚀 The checkout page will automatically open in the browser after the server is started."
if [ -n "$PAYPAL_CLIENT_ID" ] && [ -n "$PAYPAL_CLIENT_SECRET" ]; then
WELCOME_MESSAGE="${ALTERNATE_WELCOME_MESSAGE}"
fi
sudo bash -c "echo \"${WELCOME_MESSAGE}\" > /usr/local/etc/vscode-dev-containers/first-run-notice.txt"