aports/main/freeswitch/freeswitch.pre-upgrade
Natanael Copa 54d0004b93 main/freeswitch: move scripts dir to /etc/freeswitch/
sneak in a gcc-4.5 build fix too...

fixes #430
2010-09-30 13:44:37 +00:00

12 lines
250 B
Bash

#!/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