script changes

master
Paul Wilde 3 months ago
parent 3aebf393b6
commit bca3c61f69

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

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

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

@ -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
Loading…
Cancel
Save