deepce fix
This commit is contained in:
parent
b25d32af96
commit
a872da3d4c
@ -561,7 +561,7 @@ containerServices() {
|
|||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
if [ -f "/etc/ssh/sshd_config" ]; then
|
if [ -f "/etc/ssh/sshd_config" ]; then
|
||||||
sshPort=$(grep /etc/ssh/sshd_config "^Port" || echo "Port 22" | cut -d' ' -f2)
|
sshPort=$(grep "^Port" /etc/ssh/sshd_config || echo "Port 22" | cut -d' ' -f2)
|
||||||
printSuccess "Yes (port $sshPort)"
|
printSuccess "Yes (port $sshPort)"
|
||||||
else
|
else
|
||||||
printSuccess "Yes"
|
printSuccess "Yes"
|
||||||
|
Loading…
Reference in New Issue
Block a user