diff --git a/tests/samba.conf b/tests/samba.conf index f652d364..6f3104da 100644 --- a/tests/samba.conf +++ b/tests/samba.conf @@ -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 )} diff --git a/tools/modules/software/module_samba.sh b/tools/modules/software/module_samba.sh index 0a1991d8..13619fdb 100644 --- a/tools/modules/software/module_samba.sh +++ b/tools/modules/software/module_samba.sh @@ -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 ;;