There really is too much stuff here... shouldn't really be one commit... Co-authored-by: Max Hutz <maximhutz@gmail.com> Reviewed-on: https://git1.maximhutz.com/Infrastructure/Codebase/pulls/1 Co-authored-by: Max <git@maximhutz.me> Co-committed-by: Max <git@maximhutz.me>
18 lines
321 B
Bash
18 lines
321 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# shellcheck disable=SC2046
|
|
docker-compose down
|
|
|
|
# Create and accessify correct folders.
|
|
mkdir -p boot
|
|
sudo chown 1000:1000 -R config
|
|
sudo chown 1000:1000 -R boot
|
|
sudo chown 1000:1000 -R custom
|
|
|
|
# Update contents.
|
|
sudo tar xvfz archive.tar.gz -C ./
|
|
|
|
# Run.
|
|
docker-compose -f compose.yml up -d --build |