mirror of
https://github.com/armbian/configng.git
synced 2026-01-06 10:37:41 -08:00
changed ouptut to mach testcase expectations and ux info
This commit is contained in:
@@ -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
|
||||
)}
|
||||
|
||||
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user