Fix tests
This commit is contained in:
@@ -365,32 +365,7 @@ else
|
||||
exit_script
|
||||
|
||||
fi
|
||||
if [ "$wo_distro" != "focal" ]; then
|
||||
echo -ne " wo secure --sshport [..]\r"
|
||||
if {
|
||||
wo secure --sshport 2022
|
||||
} >>/var/log/wo/test.log; then
|
||||
echo -ne " wo secure --sshport [${CGREEN}OK${CEND}]\\r"
|
||||
echo -ne '\n'
|
||||
else
|
||||
echo -e " wo secure --sshport [${CRED}FAIL${CEND}]"
|
||||
echo -ne '\n'
|
||||
exit_script
|
||||
|
||||
fi
|
||||
echo -ne " wo secure --ssh [..]\r"
|
||||
if {
|
||||
wo secure --ssh --force
|
||||
} >>/var/log/wo/test.log; then
|
||||
echo -ne " wo secure --ssh [${CGREEN}OK${CEND}]\\r"
|
||||
echo -ne '\n'
|
||||
else
|
||||
echo -e " wo secure --ssh [${CRED}FAIL${CEND}]"
|
||||
echo -ne '\n'
|
||||
exit_script
|
||||
|
||||
fi
|
||||
fi
|
||||
echo -ne " wo secure --port [..]\r"
|
||||
if {
|
||||
wo secure --port 22223
|
||||
|
||||
Reference in New Issue
Block a user