summaryrefslogtreecommitdiff
path: root/pinyconfigs/debian/pinyconfigs.postinst
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-11-07 00:09:53 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-11-07 00:09:53 -0700
commit82f9c9f1fa19c59e296570412656c66607d46f48 (patch)
tree37ddd246883521548513faebd94688b0db70e24c /pinyconfigs/debian/pinyconfigs.postinst
parent94fc7a992c7f3e163b491ce8b248f3c1b4ca2702 (diff)
downloadpiny-code-82f9c9f1fa19c59e296570412656c66607d46f48.tar.gz
piny-code-82f9c9f1fa19c59e296570412656c66607d46f48.zip
pinyconfigs
Adding a package that does all the config file magic to get a piny instance running. Signed-off-by: Julian Blake Kongslie <jblake@omgwallhack.org>
Diffstat (limited to 'pinyconfigs/debian/pinyconfigs.postinst')
-rwxr-xr-xpinyconfigs/debian/pinyconfigs.postinst19
1 files changed, 19 insertions, 0 deletions
diff --git a/pinyconfigs/debian/pinyconfigs.postinst b/pinyconfigs/debian/pinyconfigs.postinst
new file mode 100755
index 0000000..919f205
--- /dev/null
+++ b/pinyconfigs/debian/pinyconfigs.postinst
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+
+ configure)
+
+ if [ "$2" = "" ]; then
+ # If this is a fresh install, enable the piny site in apache.
+ a2ensite piny || true
+ fi
+
+ ;;
+
+ *)
+ ;;
+
+esac