diff --git a/seqs/nextcloud.sh b/seqs/nextcloud.sh index 972b7fe..c8d665d 100755 --- a/seqs/nextcloud.sh +++ b/seqs/nextcloud.sh @@ -1,13 +1,25 @@ #!/bin/bash +# Dependency to other seqs +# - mysql.sh (soft; Missing informational output) + +# Get script working directory +# (when called from a different directory) +WDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >>/dev/null 2>&1 && pwd )" + step_100_info() { echo "Delete IP from bruteforce table "; } step_100() { + local ncdb= local ip= local ipregex='^[0-2]*[0-9]{1,2}\.[0-2]*[0-9]{1,2}\.[0-2]*[0-9]{1,2}\.[0-2]*[0-9]{1,2}$' if [ -z $2 ] ; then echoerr " [E] No database provided" + if [ -f "${WDIR}/mysql.sh" ] ; then + echo " [I] Available mysql databases:" + "${WDIR}/mysql.sh" -qq listdb + fi return 1 else ncdb="$2"