-
Notifications
You must be signed in to change notification settings - Fork 464
/
import_config.sh
executable file
·49 lines (41 loc) · 1.84 KB
/
import_config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
fWelcome () {
clear
echo "======================================================="
echo " _ _ _ _ _ _____ _ _______ _ _______ "
echo "| || || | | | (_____) | | (_______) | (_______)"
echo "| || || | |__ | | _ \ \ _ | | _____ "
echo "| ||_|| | __)| | | | \ \| | | | | ___) "
echo "| |___| | | | |_| |_ _____) ) |_____| |_____| |_____ "
echo " \______|_| |_(_____|______/ \______)_______)_______)"
echo " - - - Signaling the start of next generation telephony"
echo "======================================================="
echo
}
cd `dirname $0`
fWelcome
if [ -f $1/whistle_apps/lib/whistle_couch-1.0.0/priv/startup.config ];
then
echo "# \cp -f $1/whistle_apps/lib/whistle_couch-1.0.0/priv/startup.config ../whistle_apps/lib/whistle_couch-1.0.0/priv/"
\cp -f $1/whistle_apps/lib/whistle_couch-1.0.0/priv/startup.config ../whistle_apps/lib/whistle_couch-1.0.0/priv/
elif [ -f $1/lib/whistle_couch-1.0.0/priv/startup.config ];
then
echo "# \cp -f $1/lib/whistle_couch-1.0.0/priv/startup.config ../whistle_apps/lib/whistle_couch-1.0.0/priv/"
\cp -f $1/lib/whistle_couch-1.0.0/priv/startup.config ../whistle_apps/lib/whistle_couch-1.0.0/priv/
fi
if [ -f $1/lib/whistle_amqp-1.0.0/priv/startup.config ];
then
echo "# \cp -f $1/lib/whistle_amqp-1.0.0/priv/startup.config ../lib/whistle_amqp-1.0.0/priv/"
\cp -f $1/lib/whistle_amqp-1.0.0/priv/startup.config ../lib/whistle_amqp-1.0.0/priv/
fi
if [ -f $1/whistle_apps/conf/vm.args ];
then
echo "# \cp -f $1/whistle_apps/conf/vm.args ../whistle_apps/conf"
\cp -f $1/whistle_apps/conf/vm.args ../whistle_apps/conf
fi
if [ -f $1/ecallmgr/conf/vm.args ];
then
echo "# \cp -f $1/ecallmgr/conf/vm.args ../ecallmgr/conf"
\cp -f $1/ecallmgr/conf/vm.args ../ecallmgr/conf
fi
exit 0