|
|
@ -1,7 +1,15 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Convert templated variables to shell variables
|
|
|
|
|
|
|
|
# shellcheck disable=SC2269
|
|
|
|
|
|
|
|
LOG_PATH=${LOG_PATH}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# shellcheck disable=SC2034
|
|
|
|
BOLD='\033[0;1m'
|
|
|
|
BOLD='\033[0;1m'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# shellcheck disable=SC2059
|
|
|
|
printf "$${BOLD}Installing MODULE_NAME ...\n\n"
|
|
|
|
printf "$${BOLD}Installing MODULE_NAME ...\n\n"
|
|
|
|
|
|
|
|
|
|
|
|
# Add code here
|
|
|
|
# Add code here
|
|
|
|
# Use varibles from the templatefile function in main.tf
|
|
|
|
# Use varibles from the templatefile function in main.tf
|
|
|
|
# e.g. LOG_PATH, PORT, etc.
|
|
|
|
# e.g. LOG_PATH, PORT, etc.
|
|
|
@ -13,6 +21,6 @@ printf "👷 Starting MODULE_NAME in background...\n\n"
|
|
|
|
# 1. Use & to run it in background
|
|
|
|
# 1. Use & to run it in background
|
|
|
|
# 2. redirct stdout and stderr to log files
|
|
|
|
# 2. redirct stdout and stderr to log files
|
|
|
|
|
|
|
|
|
|
|
|
./app >${LOG_PATH} 2>&1 &
|
|
|
|
./app > "$${LOG_PATH}" 2>&1 &
|
|
|
|
|
|
|
|
|
|
|
|
printf "check logs at ${LOG_PATH} \n\n"
|
|
|
|
printf "check logs at %s\n\n" "$${LOG_PATH}"
|
|
|
|