aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeswitch/freeswitch.pre-upgrade
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-09-30 13:42:55 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-09-30 13:44:37 +0000
commit54d0004b9355ac4d464880bf81a552334bb38026 (patch)
tree1dd27c3c6554f09557cdb6561016fe2b2f7bf20b /main/freeswitch/freeswitch.pre-upgrade
parent4ce598e0e91cf9ecb264d0ea5522f4078f23caaf (diff)
downloadaports-54d0004b9355ac4d464880bf81a552334bb38026.tar.bz2
aports-54d0004b9355ac4d464880bf81a552334bb38026.tar.xz
main/freeswitch: move scripts dir to /etc/freeswitch/
sneak in a gcc-4.5 build fix too... fixes #430
Diffstat (limited to 'main/freeswitch/freeswitch.pre-upgrade')
-rw-r--r--main/freeswitch/freeswitch.pre-upgrade11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/freeswitch/freeswitch.pre-upgrade b/main/freeswitch/freeswitch.pre-upgrade
new file mode 100644
index 0000000000..b2c361bed2
--- /dev/null
+++ b/main/freeswitch/freeswitch.pre-upgrade
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+olddir=/usr/share/freeswitch/scripts
+if [ -d "$olddir" ] && ! [ -d /etc/freeswitch/scripts ]; then
+ echo "NOTE: Moving scripts to /etc/freeswitch/scripts"
+ mkdir -p /etc/freeswitch
+ mv "$olddir" /etc/freeswitch
+fi
+
+# ignore errors
+exit 0