mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-08-06 16:08:22 +00:00
Serve existing captive portal assets
This commit is contained in:
parent
3340108acd
commit
5a27dfeceb
2 changed files with 11 additions and 10 deletions
|
|
@ -28,7 +28,10 @@ systemd_syntax() {
|
|||
}
|
||||
|
||||
captive_rules() {
|
||||
grep -q 'R=302' "$ROOT/home/pi/pivilion/config/html/.htaccess" &&
|
||||
grep -Fqx 'RewriteCond %{REQUEST_FILENAME} -f [OR]' "$ROOT/home/pi/pivilion/config/html/.htaccess" &&
|
||||
grep -Fqx 'RewriteCond %{REQUEST_FILENAME} -d' "$ROOT/home/pi/pivilion/config/html/.htaccess" &&
|
||||
grep -Fqx 'RewriteRule ^ - [END]' "$ROOT/home/pi/pivilion/config/html/.htaccess" &&
|
||||
grep -q 'R=302' "$ROOT/home/pi/pivilion/config/html/.htaccess" &&
|
||||
! grep -q 'R=301' "$ROOT/home/pi/pivilion/config/html/.htaccess" &&
|
||||
! grep -Eq 'dport[[:space:]]+443|redirect to :443' "$ROOT/usr/local/lib/pivilion/mode.sh"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue