27 lines
365 B
Bash
Executable File
27 lines
365 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
mkdir -p ./data/things
|
|
mkdir -p ./data/trash
|
|
|
|
if [ -z "$(podman images -q bardak)" ]
|
|
then
|
|
echo "Container missing, building..."
|
|
./build.sh
|
|
fi
|
|
|
|
podman run \
|
|
--name bardak \
|
|
--init \
|
|
--read-only \
|
|
-v ./data/things:/app/things \
|
|
-v ./data/trash:/app/trash \
|
|
--publish 8085:8085 \
|
|
`#--detach` \
|
|
`#--restart=always` \
|
|
--replace \
|
|
bardak
|
|
|
|
|