]>
Commit | Line | Data |
---|---|---|
ab650faa DM |
1 | #!/bin/sh |
2 | ### BEGIN INIT INFO | |
3 | # Provides: drupal_siteconfig | |
4 | # Required-Start: $remote_fs mysql +mysql_randompw | |
5 | # Required-Stop: | |
6 | # X-Start-Before: apache2 | |
7 | # Default-Start: 2 | |
8 | # Default-Stop: | |
9 | # Short-Description: Generate Drupal Siteconfig | |
10 | # Description: Generate Drupal Siteconfig | |
11 | ### END INIT INFO | |
12 | ||
13 | set -e | |
14 | ||
15 | DOMAIN=`grep '^search' /etc/resolv.conf|awk '{ print $2; }'` | |
16 | HNAME=`head -n 1 /etc/hostname|awk '{ print $1; }'` | |
17 | ||
18 | if [ "X${HNAME}" = "Xlocalhost" ] ; then | |
19 | exit 0; | |
20 | fi | |
21 | ||
22 | export DEBIAN_FRONTEND="noninteractive" | |
23 | export DEBCONF_NONINTERACTIVE_SEEN="true" | |
24 | ||
25 | # set HOME dir (for .my.cfg) | |
26 | export HOME=/root | |
27 | export USER=root | |
28 | ||
29 | dpkg --force-confold --configure drupal6 | |
30 | ||
31 | insserv -r drupal_setup | |
32 | rm -f /etc/init.d/drupal_setup | |
33 |