]> git.proxmox.com Git - dab-pve-appliances.git/blame - debian-6.0-drupal/drupal_setup
debian-6.0-standard-64: bump version to 6.0-7
[dab-pve-appliances.git] / debian-6.0-drupal / drupal_setup
CommitLineData
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
13set -e
14
15DOMAIN=`grep '^search' /etc/resolv.conf|awk '{ print $2; }'`
16HNAME=`head -n 1 /etc/hostname|awk '{ print $1; }'`
17
18if [ "X${HNAME}" = "Xlocalhost" ] ; then
19 exit 0;
20fi
21
22export DEBIAN_FRONTEND="noninteractive"
23export DEBCONF_NONINTERACTIVE_SEEN="true"
24
25# set HOME dir (for .my.cfg)
26export HOME=/root
27export USER=root
28
29dpkg --force-confold --configure drupal6
30
31insserv -r drupal_setup
32rm -f /etc/init.d/drupal_setup
33