bin/zulip: add

This commit is contained in:
xeruf 2022-07-06 08:56:40 +02:00
parent 7b0142dcee
commit 61e8b3ad09
1 changed files with 10 additions and 0 deletions

10
.local/bin/scripts/zulip Executable file
View File

@ -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
)"