diff --git a/.local/bin/scripts/zulip b/.local/bin/scripts/zulip new file mode 100755 index 0000000..0a4fb3c --- /dev/null +++ b/.local/bin/scripts/zulip @@ -0,0 +1,10 @@ +#!/bin/sh +# Execute commands on a zulip server +zulipdepl="/home/zulip/deployments/current" +sudo su zulip -c "$( + scr="$zulipdepl/scripts/$1" + if test -f "$scr" + then shift && echo "$scr $@" + else echo "$zulipdepl/manage.py $@" + fi +)"