1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-20 03:29:50 +02:00
Mailu/tests/compose/webmail/01_ensure_admin_unreachable.sh
Florent Daigniere 1379a58352 Basic hardening
2022-11-12 14:50:30 +01:00

5 lines
328 B
Bash
Executable File

#!/bin/bash
[[ `curl -I -so /dev/null -w "%{http_code}" http://localhost/` -ne 200 ]] && echo "The default page of snappymail hasn't returned 200!" >>/dev/stderr && exit 1
[[ `curl -I -so /dev/null -w "%{http_code}" http://localhost/?admin` -ne 403 ]] && echo "The admin of snappymail is not disabled!" >>/dev/stderr && exit 1