oneuptime/install.sh

24 lines
372 B
Bash
Raw Permalink Normal View History

2022-11-08 15:24:58 +00:00
#!/usr/bin/env bash
2020-02-13 21:48:38 +00:00
2023-04-18 13:20:14 +00:00
# If its not environment IS_DOCKER then exit
2023-04-18 13:26:37 +00:00
if [[ $IS_DOCKER == "true" ]]
then
2023-04-18 13:20:14 +00:00
echo "This script should run in the docker container."
else
# Pull latest changes
git pull
fi
2023-04-05 09:48:35 +00:00
2023-07-19 11:34:59 +00:00
set -a
2019-08-02 12:56:16 +00:00
2023-06-12 09:42:43 +00:00
bash configure.sh
2022-11-08 15:24:58 +00:00
2023-03-17 13:08:26 +00:00
# Load env values from config.env
2023-07-19 11:34:59 +00:00
export $(grep -v '^#' config.env | xargs) && docker compose pull
2022-11-10 11:39:06 +00:00
2023-01-03 15:19:06 +00:00
# Start all containers.
2023-07-19 11:34:59 +00:00
npm start
2022-11-08 15:24:58 +00:00