From 39636be7b018b9121696ce7bdc462ab2c3c8185d Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 11 Jan 2013 17:11:28 +0100 Subject: o Creating bin/web for running the web application. --- src/main/unix/files/root/etc/booter.properties | 2 ++ src/main/unix/files/scripts/postinstall | 20 ++++++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) create mode 100755 src/main/unix/files/root/etc/booter.properties (limited to 'src/main/unix/files') diff --git a/src/main/unix/files/root/etc/booter.properties b/src/main/unix/files/root/etc/booter.properties new file mode 100755 index 0000000..8f98408 --- /dev/null +++ b/src/main/unix/files/root/etc/booter.properties @@ -0,0 +1,2 @@ +context./=classpath:/webapp +log=logs/web-stdout.out diff --git a/src/main/unix/files/scripts/postinstall b/src/main/unix/files/scripts/postinstall index a0314dc..37c202e 100755 --- a/src/main/unix/files/scripts/postinstall +++ b/src/main/unix/files/scripts/postinstall @@ -1,10 +1,18 @@ #!/bin/bash -ln -s ../../../../etc/config.properties etc/config.properties +case "`uname -s`" in + CYGWIN*) + cp ../../../etc/config.properties etc/config.properties + mkdir -p logs/ + ;; + *) + ln -s ../../../../etc/config.properties etc/config.properties -if [ ! -d ../../../logs ] -then - mkdir ../../../logs -fi + if [ ! -d ../../../logs ] + then + mkdir ../../../logs + fi -ln -s ../../../logs + ln -s ../../../logs + ;; +esac -- cgit v1.2.3