Initial commit (I feel unsafe)
This commit is contained in:
14
pwpush_server-setup
Normal file
14
pwpush_server-setup
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user