diff --git a/00-create-pod.sh b/00-create-pod.sh index 4abd81f..5bab3a3 100755 --- a/00-create-pod.sh +++ b/00-create-pod.sh @@ -1,10 +1,11 @@ #!/bin/bash mkdir ./uploads ./static ./config -p -touch config.exs + chown -R 911:911 ./uploads podman pod create \ --name rebased-pod \ + -p 5000:5000 \ -p 4000:4000 diff --git a/30-run-rebased.sh b/30-run-rebased.sh index 39480f7..4a77c9d 100755 --- a/30-run-rebased.sh +++ b/30-run-rebased.sh @@ -14,6 +14,7 @@ podman run -d \ -v ./static:/var/lib/pleroma/static:z \ -v ./config:/config:rw \ -v ./config:/var/lib/pleroma/config \ + -v ./config/prod.secret.exs:/var/lib/pleroma/config.exs \ -e DOMAIN=social.example.com \ -e INSTANCE_NAME=rebased \ -e ADMIN_EMAIL=admin@example.com \ diff --git a/35-gen-config.sh b/35-gen-config.sh index e53657a..0d87cf1 100755 --- a/35-gen-config.sh +++ b/35-gen-config.sh @@ -5,8 +5,4 @@ source ./script_config.sh podman exec -it --user=0 --privileged rebased-web /opt/pleroma/bin/pleroma_ctl instance gen echo "Check files in config - if all looks good rename generated_config.exs to prod.secret.exs" -if [ -f ./config/setup_db.sql ]; then - # run this in postgres container - echo hi -fi diff --git a/90-recreate.sh b/90-recreate.sh new file mode 100755 index 0000000..5029305 --- /dev/null +++ b/90-recreate.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +podman pod stop rebased-pod +podman pod rm rebased-pod +./00-create-pod.sh +./20-create-db.sh +./30-run-rebased.sh diff --git a/config.exs b/config.exs deleted file mode 100644 index e69de29..0000000