chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9137016
)
Add missing bits to scripts/setup, and teach it to install the CGI on
author
Richard Kettlewell
<rjk@greenend.org.uk>
Mon, 14 Jan 2008 20:39:22 +0000
(20:39 +0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Mon, 14 Jan 2008 20:39:22 +0000
(20:39 +0000)
a Mac too.
scripts/setup.in
patch
|
blob
|
blame
|
history
diff --git
a/scripts/setup.in
b/scripts/setup.in
index b64c50801fadd5a14a1396f322a92523cb0c1060..921cedf40a63512dae74653e3f374781f5ce7647 100755
(executable)
--- a/
scripts/setup.in
+++ b/
scripts/setup.in
@@
-138,6
+138,8
@@
echo "user $user" >> pkgconfdir/config.new
if [ $port != none ]; then
echo "listen 0.0.0.0 $port" >> pkgconfdir/config.new
fi
if [ $port != none ]; then
echo "listen 0.0.0.0 $port" >> pkgconfdir/config.new
fi
+echo "smtp_server $smtp_server" >> pkgconfdir/config.new
+echo "mail_sender $mail_sender" >> pkgconfdir/config.new
echo
echo "Proposed pkgconfdir/config:"
echo
echo "Proposed pkgconfdir/config:"
@@
-159,6
+161,11
@@
echo
echo "Installing pkgconfdir/config"
mv pkgconfdir/config.new pkgconfdir/config
echo "Installing pkgconfdir/config"
mv pkgconfdir/config.new pkgconfdir/config
+if [ ! -f pkgconfdir/options.user ]; then
+ echo "Making sure pkgconfdir/options.user exists"
+ touch pkgconfdir/options.user
+fi
+
echo "Making sure that pkgstatedir exists"
mkdir -p pkgstatedir
chown $user:$group pkgstatedir
echo "Making sure that pkgstatedir exists"
mkdir -p pkgstatedir
chown $user:$group pkgstatedir
@@
-172,6
+179,16
@@
mac )
launchctl load /Library/LaunchDaemons
echo "Starting DisOrder server"
launchctl start uk.org.greenend.rjk.disorder
launchctl load /Library/LaunchDaemons
echo "Starting DisOrder server"
launchctl start uk.org.greenend.rjk.disorder
+ echo "Installing CGI"
+ install -m 555 server/disorder.cgi /Library/WebServer/CGI-Executables/disorder
+ echo "Setting up link to CGI resources"
+ rm /etc/httpd/users/disorder.conf.new
+ echo Alias /disorder/ pkgdatadir/static/ >> /etc/httpd/users/disorder.conf.new
+ mv /etc/httpd/users/disorder.conf.new /etc/httpd/users/disorder.conf
+ echo "Reloading web server"
+ sudo apachectl graceful
+ echo
+ echo "You must sudo disorder setup-guest [--no-online-registration] next."
;;
* )
echo "Sorry, I don't know how to install the server on this platform."
;;
* )
echo "Sorry, I don't know how to install the server on this platform."