24 lines
590 B
Bash
Executable file
24 lines
590 B
Bash
Executable file
#!/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...
|
|
podman run -d \
|
|
--name rebased-web \
|
|
--pod rebased-pod \
|
|
-e DB_USER=$PG_USER \
|
|
-e DB_PASS=$PG_PASS \
|
|
-e DB_NAME=$PG_NAME \
|
|
-e DB_HOST=$PG_HOST \
|
|
-v ./uploads:/var/lib/pleroma/uploads:z \
|
|
-v ./static:/var/lib/pleroma/static:z \
|
|
-v ./config:/var/lib/pleroma/config \
|
|
-v ./config/prod.secret.exs:/var/lib/pleroma/config.exs \
|
|
$REBASED_IMG
|
|
|
|
|