Create a command alias for management/cli.py
This commit is contained in:
parent
1af976a093
commit
b5bc886561
1 changed files with 9 additions and 1 deletions
|
@ -54,7 +54,7 @@ cat > /usr/local/sbin/mailinabox << EOF;
|
||||||
cd $(pwd)
|
cd $(pwd)
|
||||||
source setup/start.sh
|
source setup/start.sh
|
||||||
EOF
|
EOF
|
||||||
chmod +x /usr/local/sbin/mailinabox
|
chmod 744 /usr/local/sbin/mailinabox
|
||||||
|
|
||||||
# Ask the user for the PRIMARY_HOSTNAME, PUBLIC_IP, and PUBLIC_IPV6,
|
# Ask the user for the PRIMARY_HOSTNAME, PUBLIC_IP, and PUBLIC_IPV6,
|
||||||
# if values have not already been set in environment variables. When running
|
# if values have not already been set in environment variables. When running
|
||||||
|
@ -129,6 +129,14 @@ source setup/zpush.sh
|
||||||
source setup/management.sh
|
source setup/management.sh
|
||||||
source setup/munin.sh
|
source setup/munin.sh
|
||||||
|
|
||||||
|
# Create a shorthand alias for the cli interface
|
||||||
|
cat > /usr/local/sbin/miabadm << EOF;
|
||||||
|
#!/bin/bash
|
||||||
|
cd $(pwd)
|
||||||
|
/usr/bin/env python3 management/cli.py $$@
|
||||||
|
EOF
|
||||||
|
chmod 744 /usr/local/sbin/miabadm
|
||||||
|
|
||||||
# Wait for the management daemon to start...
|
# Wait for the management daemon to start...
|
||||||
until nc -z -w 4 127.0.0.1 10222
|
until nc -z -w 4 127.0.0.1 10222
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in a new issue