From cb06bb626545a35f56f55f2abe3942262f5ca824 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 29 Apr 2024 14:02:17 +0200 Subject: add serve function --- config/essentials/shell/functions.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index f8b764a..3078f46 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -301,4 +301,11 @@ wgtoggle() { ip -br a | awk '{print $1}' | grep "$d" > /dev/null && doas wg-quick down "$d" || doas wg-quick up "$d" - } +} + +serve() { + docker container run \ + --rm \ + --volume "$(readlink -f "$1")":/data \ + --publish 80:5000 sigoden/dufs:latest /data --allow-all +} -- cgit v1.2.3