summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-01-27 15:37:18 -0800
committerBrion Vibber <brion@pobox.com>2010-01-27 15:37:18 -0800
commite7a5471287598902d4fefbb93f1247d8c025e66b (patch)
tree18df3720f98d8d3b2225ff3501d8aa845874da10 /scripts
parent06cd3358970bfc27ff027cd1d8dc6974950c3793 (diff)
add additional post-install shell script option for setup_status_network.sh to do any other site-specific setup
Diffstat (limited to 'scripts')
-rw-r--r--scripts/setup.cfg.sample1
-rwxr-xr-xscripts/setup_status_network.sh6
2 files changed, 7 insertions, 0 deletions
diff --git a/scripts/setup.cfg.sample b/scripts/setup.cfg.sample
index a0f10b352..f247a3bca 100644
--- a/scripts/setup.cfg.sample
+++ b/scripts/setup.cfg.sample
@@ -15,3 +15,4 @@ export PHPBASE=/var/www/statusnet
export WILDCARD=example.net
export MAILTEMPLATE=/etc/statusnet/newsite-mail.txt
export MAILSUBJECT="Your new StatusNet site"
+export POSTINSTALL=/etc/statusnet/morestuff.sh
diff --git a/scripts/setup_status_network.sh b/scripts/setup_status_network.sh
index d468df3ae..ae392191f 100755
--- a/scripts/setup_status_network.sh
+++ b/scripts/setup_status_network.sh
@@ -72,3 +72,9 @@ then
else
echo "No mail template, not sending email."
fi
+
+if [ -f "$POSTINSTALL" ]
+then
+ echo "Running $POSTINSTALL ..."
+ source "$POSTINSTALL"
+fi