makefile: install the drupal-fix-404s.conf file and enable it
[eostre.git] / drupal-automake-generic / Makefile
index b1a8fd7fa85f0191564308b0e9cd5f3b02c480b8..cf193bfbb1c3f2ed2d822e4905b795eb48df568e 100644 (file)
@@ -11,7 +11,7 @@ chown-www:
 # recipes for installing this thing onto a "real" (non-chroot) system
 # this is enough to get us to a functional Drupal install page
 # to go further, use the install-from-backups recipe
-setup-real-system: probe-files install-pkgs install-drupal do-mysql chown-www
+setup-real-system: probe-files install-pkgs install-drupal do-mysql chown-www post-install
 
 # test that we have /install-{drupal-toolchain,packages}.sh /pkgs /sqldefaults and /do-mysql-sh
 # if we don't have all of these files, BAD THINGS may happen
@@ -37,6 +37,12 @@ do-mysql:
        chmod og-rwx /do-mysql.sh
        chmod 0600 /sqldefaults
 
+post-install: drupal-fix-404s-conf
+
+drupal-fix-404s-conf:
+       install conf/drupal-fix-404s.conf /etc/apache2/conf-available/
+       a2enconf drupal-fix-404s.conf
+
 # recipes to restore the site from a backup
 install-from-backups: probe-backup-files install-sqldump install-drupal-sites chown-www