changed ouptut to mach testcase expectations and ux info

This commit is contained in:
Tearran
2025-04-13 22:19:25 +00:00
committed by Joey Turner
parent 904de20afa
commit 17f99c1123
2 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ TESTNAME="samba install"
testcase() {(
set -e
./bin/armbian-config --api module_samba install
sudo systemctl start smbd.service
sudo systemctl is-active --quiet smbd.service
./bin/armbian-config --api module_samba start
./bin/armbian-config --api module_samba check >/dev/null 2>&1
./bin/armbian-config --api module_samba remove
)}

View File

@@ -109,13 +109,13 @@ function module_samba() {
"${commands[9]}")
## check samba status
if srv_active smbd; then
echo "Samba service is active." | show_message
echo "active."
return 0
elif ! srv_enabled smbd; then
echo "Samba service is disabled." | show_message
echo "inactive"
return 1
else
echo "Samba service is in an unknown state." | show_message
echo "Samba service is in an unknown state."
return 1
fi
;;