summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2025-12-15 22:29:49 +0000
committerJoe Carstairs <me@joeac.net>2025-12-15 22:29:49 +0000
commit4ac7f6af8e3b5b2e58b14e27477717924b098a09 (patch)
tree517a291260dfb7e3d641adb872526e7b6244df38
parentff8201c4f381edc5cc6b24398b05005672f6ec55 (diff)
parentb0161b6ddc3fbec314a4a8b236e5caf86c4970cd (diff)
Merge branch 'main' of https://git.joeac.net/joeac/joeac.net
-rwxr-xr-xrpi.sh19
1 files changed, 0 insertions, 19 deletions
diff --git a/rpi.sh b/rpi.sh
deleted file mode 100755
index 5bf5d94..0000000
--- a/rpi.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-DOCKER_BIN=podman
-CONTAINER=joeac.net
-PORT=80
-
-set -eu
-
-running_containers=`$DOCKER_BIN ps | tail -n +2`
-IFS=$'\n'
-for line in $running_containers; do
- if [[ "$line" =~ ^[a-z0-9]+[[:space:]]+localhost/$CONTAINER:[0-9a-z]+[[:space:]] ]]; then
- $DOCKER_BIN stop $(echo "$line" | cut -d' ' -f 1)
- fi
-done
-
-set -x
-$DOCKER_BIN run -dt -p $PORT:4321 $CONTAINER
-