script changes
This commit is contained in:
parent
3aebf393b6
commit
bca3c61f69
5 changed files with 10 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
7
90-recreate.sh
Executable file
7
90-recreate.sh
Executable 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
|
Loading…
Reference in a new issue