aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-11-12 13:08:04 +0100
committerHarald Eilertsen <haraldei@anduin.net>2024-11-12 13:08:04 +0100
commite1b49e38c1222a84f568b1a3affb25f32d8fb695 (patch)
tree2866a9088c20c80c734a3af65979f4f636ae1fcc
parent75d7d07ae63e4f499ab61380604c8cd532427a7b (diff)
downloadhubzilla-ddev-e1b49e38c1222a84f568b1a3affb25f32d8fb695.tar.gz
hubzilla-ddev-e1b49e38c1222a84f568b1a3affb25f32d8fb695.tar.bz2
hubzilla-ddev-e1b49e38c1222a84f568b1a3affb25f32d8fb695.zip
Add ddev util command to run hubzilla utils in container.
-rwxr-xr-x.ddev/commands/web/util13
1 files changed, 13 insertions, 0 deletions
diff --git a/.ddev/commands/web/util b/.ddev/commands/web/util
new file mode 100755
index 0000000..c6a8fc5
--- /dev/null
+++ b/.ddev/commands/web/util
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+#
+## Description: Run a script from the Hubzilla util directory in the container
+## Usage: util <script> [args...]
+## Example: ddev util addon list all
+
+script=$1 && shift
+
+if [ -x ./util/$scrpt ]; then
+ ./util/$script $*
+else
+ echo "[-] Error: util/$script was not fund."
+fi