rebased-podman/30-run-rebased.sh

26 lines
611 B
Bash
Raw Permalink Normal View History

#!/bin/bash
source ./script_config.sh
2022-11-11 21:09:51 +01:00
touch ./config/prod.secret.exs
2022-11-11 16:31:47 +01:00
echo Stopping old 'rebased-web' container...
podman stop rebased-web
podman rm rebased-web
chmod -R 777 uploads
2022-11-11 16:31:47 +01:00
echo Creating new 'rebased-web' container...
podman run -d \
--name rebased-web \
--pod rebased-pod \
2022-11-14 15:25:40 +01:00
-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 \
2022-11-11 18:41:44 +01:00
-v ./config:/var/lib/pleroma/config \
2022-11-11 19:49:21 +01:00
-v ./config/prod.secret.exs:/var/lib/pleroma/config.exs \
$REBASED_IMG