10 lines
249 B
Bash
Executable file
10 lines
249 B
Bash
Executable file
#!/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
|
|
)"
|