Files
instance-setup-stuff/pwpush_server-setup

15 lines
395 B
Bash

#!/bin/bash
# shellcheck source=pwpush_server-env
. "${HOME}"/"${USER}"-env
echo -e "\n[+] setting up pwpush\n\n-------\n"
mkdir -p "${VOLUME_PATH}"/config
mkdir -p "${VOLUME_PATH}"/database
cp "${USER}"-settings.yaml "${VOLUME_PATH}"/config
envsubst <"${HOME}"/"${USER}"-compose_template.yaml >"${HOME}"/"${USER}"-compose.yaml
sudo docker compose -f "${HOME}"/"${USER}"-compose.yaml up -d