summaryrefslogtreecommitdiffstats
path: root/main/freeswitch/freeswitch.pre-upgrade
diff options
context:
space:
mode:
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