tweek
This commit is contained in:
parent
5ee9ad12c8
commit
b3cb172f6d
@ -16,7 +16,7 @@ PWCONF="$BASEDIR/var/passwords.conf"
|
||||
WATCHCONF="$BASEDIR/var/watch.conf"
|
||||
|
||||
cat "$BASEDIR/var/[ssh].conf" | grep -Eiv '^ *(watch|password)' > cat "$SSHCONF"
|
||||
cat "$BASEDIR/var/[ssh].conf" | grep -Ei '^( *watch|Host)' | grep -B1 Watch | grep -i '^Host' | awk '{print $2}' > "$WATCHCONF"
|
||||
cat "$BASEDIR/var/[ssh].conf" | grep -Ei '^( *watch|Host)' | grep -i -B1 watch | grep -i '^Host' | awk '{print $2}' > "$WATCHCONF"
|
||||
cat "$BASEDIR/var/[ssh].conf" | grep -Ei '^( *password|Host)' | awk '{print $1 " " $2}' | grep -i -B1 --no-group-separator password | tr '\n' ' ' | sed 's/Host /\n/g; s/ *[Pp]assword//g' > "$PWCONF"
|
||||
|
||||
function ruroot () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user