kopia lustrzana https://github.com/bugout-dev/moonstream
Fixed user go dir in deployment
rodzic
df4d23a907
commit
8fd1178ab5
|
@ -25,7 +25,7 @@ SECRETS_DIR="${SECRETS_DIR:-/home/ubuntu/moonstream-secrets}"
|
|||
PARAMETERS_ENV_PATH="${SECRETS_DIR}/app.env"
|
||||
|
||||
# API server service file
|
||||
MOONSTREAM_API_SERVICE_FILE="${SCRIPT_DIR}/moonstream.service"
|
||||
MOONSTREAM_API_SERVICE_FILE="moonstream.service"
|
||||
|
||||
set -eu
|
||||
|
||||
|
@ -42,13 +42,13 @@ echo -e "${PREFIX_INFO} Installing Python dependencies"
|
|||
echo
|
||||
echo
|
||||
echo -e "${PREFIX_INFO} Install checkenv"
|
||||
HOME=/root /usr/local/go/bin/go install github.com/bugout-dev/checkenv@latest
|
||||
HOME=/home/ubuntu /usr/local/go/bin/go install github.com/bugout-dev/checkenv@latest
|
||||
|
||||
echo
|
||||
echo
|
||||
echo -e "${PREFIX_INFO} Retrieving addition deployment parameters"
|
||||
mkdir -p "${SECRETS_DIR}"
|
||||
AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION}" /root/go/bin/checkenv show aws_ssm+moonstream:true > "${PARAMETERS_ENV_PATH}"
|
||||
AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION}" /home/ubuntu/go/bin/checkenv show aws_ssm+moonstream:true > "${PARAMETERS_ENV_PATH}"
|
||||
|
||||
echo
|
||||
echo
|
||||
|
|
Ładowanie…
Reference in New Issue