working proto

This commit is contained in:
Paul Wilde 2022-11-11 20:09:51 +00:00
parent 07db1784ff
commit 5e2e529b28
5 changed files with 13 additions and 5 deletions

View file

@ -1,12 +1,16 @@
#!/bin/bash
source ./script_config.sh
touch ./config/prod.secret.exs
echo Stopping old 'rebased-web' container...
podman stop rebased-web
podman rm rebased-web
echo Creating new 'rebased-web' container...
if [ ! -f ./config/prod.secret.exs ]; then
$conf=""
fi
podman run -d \
--name rebased-web \
--pod rebased-pod \

3
db_backup.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
podman exec rebased-db pg_dump -U pleroma pleroma > db.sql

4
db_restore.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
podman exec rebased-db psql -U pleroma pleroma < db.sql

View file

@ -1,10 +1,10 @@
#!/bin/bash
DATE=$(date +"%Y-%m-%d")
PG_USER=rebased
PG_USER=pleroma
PG_PASS=rebased
PG_HOST=localhost
PG_NAME=rebased
PG_NAME=pleroma
REBASED_VER=develop
REBASED_IMG="rebased-$REBASED_VER-$DATE"

View file

@ -1,3 +0,0 @@
#!/bin/bash
podman exec pleroma-db pg_dump -U pleroma pleroma > db.sql