Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Einige Tests ob beim Apache httpd die enabled- und available-Verzeichnisse
- # wie vorgesehen genutzt sind
- #
- # (c) 2024 Emil Obermayr / dd3ah.de
- echo -n 'Sind alle Softlinks in einem Enabled-Verzeichnis? '
- find /etc/apache2/ -type l | fgrep -v -e '-enabled' || echo ok
- echo -n 'Sind alle Dateien in conf-enabled vom Typ Softlink? '
- find /etc/apache2/conf-enabled/* ! -type l | grep '^' || echo ok
- echo -n '... sites '
- find /etc/apache2/sites-enabled/* ! -type l | grep '^' || echo ok
- echo -n '... mods '
- find /etc/apache2/mods-enabled/* ! -type l | grep '^' || echo ok
- echo -n 'Zeigen alle Softlinks von mods-enabled in mods-available? '
- find /etc/apache2/mods-enabled/* -type l -printf '%l\n' | fgrep -v '/mods-available/' || echo ok
- echo -n '... conf '
- find /etc/apache2/conf-enabled/* -type l -printf '%l\n' | fgrep -v '/conf-available/' || echo ok
- echo -n '... sites '
- find /etc/apache2/sites-enabled/* -type l -printf '%l\n' | fgrep -v '/sites-available/' || echo ok
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement