Update bash-completion

This commit is contained in:
VirtuBox
2019-09-21 19:12:46 +02:00
parent 757ad73e46
commit a3e05cbbaf
3 changed files with 10 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ _wo_complete()
# HANDLE EVERYTHING AFTER THE THIRD LEVEL NAMESPACE
"install" | "purge" | "remove" )
COMPREPLY=( $(compgen \
-W "--recommended --web --admin --security --nginx --php --php73 --mysql --wpcli --phpmyadmin --adminer --utils --redis --phpredisadmin --composer --netdata --fail2ban --dashboard --proftpd --clamav --mysqlclient --mysqltuner --extplorer --all" \
-W "--recommended --web --admin --security --nginx --php --php73 --mysql --wpcli --phpmyadmin --adminer --utils --redis --phpredisadmin --composer --netdata --fail2ban --dashboard --proftpd --clamav --mysqlclient --mysqltuner --extplorer --all --force" \
-- $cur) )
;;
"upgrade" )

View File

@@ -877,7 +877,7 @@ else
wo_lib_echo "WordOps (wo) installed successfully"
echo
wo_lib_echo "To enable bash-completion, just use the command:"
wo_lib_echo_info "bash"
wo_lib_echo_info "bash -l"
echo
wo_lib_echo "To install WordOps recommended stacks, you can use the command:"
wo_lib_echo_info "wo stack install"

View File

@@ -11,6 +11,7 @@ from wo.core.services import WOService
from wo.core.shellexec import WOShellExec
from wo.core.variables import WOVariables
from wo.core.random import RANDOM
from wo.core.template import WOTemplate
def wo_secure_hook(app):
@@ -33,6 +34,13 @@ class WOSecureController(CementBaseController):
dict(help='set backend port', action='store_true')),
(['--ip'],
dict(help='set backend whitelisted ip', action='store_true')),
(['--ssh-port'], dict(
help='set custom ssh port', action='store_true')),
(['--ssh-strict'], dict(help='harden ssh security',
action='store_true')),
(['--ufw'],
dict(help='setup and configure ufw firewall',
action='store_true')),
(['user_input'],
dict(help='user input', nargs='?', default=None)),
(['user_pass'],