working proto
This commit is contained in:
parent
07db1784ff
commit
5e2e529b28
5 changed files with 13 additions and 5 deletions
|
@ -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
3
db_backup.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
podman exec rebased-db pg_dump -U pleroma pleroma > db.sql
|
4
db_restore.sh
Executable file
4
db_restore.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
podman exec rebased-db psql -U pleroma pleroma < db.sql
|
||||
|
|
@ -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"
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
podman exec pleroma-db pg_dump -U pleroma pleroma > db.sql
|
Loading…
Reference in a new issue