diff options
author | Stefan Fritsch <sf@sfritsch.de> | 2016-05-28 16:13:27 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@sfritsch.de> | 2016-05-28 16:14:04 +0200 |
commit | a9a5fafd6b882cb7c3574f734b469a63dc5512d0 (patch) | |
tree | c992216af7f512ae5d075148dab00da46e91ac6e | |
parent | ac4fff050f780a6f95e8e00058ffe7029ca9cc15 (diff) | |
download | apache2-a9a5fafd6b882cb7c3574f734b469a63dc5512d0.tar.gz |
fix postrm check for index.html
And check the check during build.
-rw-r--r-- | debian/apache2.postrm | 2 | ||||
-rwxr-xr-x | debian/rules | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/debian/apache2.postrm b/debian/apache2.postrm index 7023734e..608336d8 100644 --- a/debian/apache2.postrm +++ b/debian/apache2.postrm @@ -32,7 +32,7 @@ is_default_index_html () { 74cec59a19e5d16f7cc6a2445e35fa3b 776221a94e5a174dc2396c0f3f6b6a74 c481228d439cbb54bdcedbaec5bbb11a - 675d549372241f55964b5f886921b06d + e2620d4a5a0f8d80dd4b16de59af981f EOF } diff --git a/debian/rules b/debian/rules index d08e8251..4353501a 100755 --- a/debian/rules +++ b/debian/rules @@ -39,6 +39,11 @@ prebuild-checks: ls -1 $$ERRS ;\ false ;\ fi + MD5=$$(md5sum debian/index.html 2> /dev/null |cut -d' ' -f 1) ; \ + if ! grep -q $$MD5 debian/apache2.postrm ; then \ + echo "ERROR: index.html's md5 is missing in postrm!" ;\ + false ; \ + fi clean-config-vars: # Clean up config_vars.mk |