script changes

This commit is contained in:
Paul Wilde 2022-11-11 18:49:21 +00:00
parent 3aebf393b6
commit bca3c61f69
5 changed files with 10 additions and 5 deletions

View file

@ -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

View file

@ -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 \

View file

@ -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

7
90-recreate.sh Executable file
View file

@ -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

View file