/usr/lib/tasksel/tests/server is in tasksel-data 3.34ubuntu11.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/bin/sh
if ! [ "$NEW_INSTALL" ]; then
exit 3
fi
/usr/lib/tasksel/tests/desktop
ret=$?
case $ret in
0|2) # is desktop
exit 3 # not server
;;
*)
exit 2 # likely is server
;;
esac
|