Use rsync instead of cp as it provides better feedback

This commit is contained in:
markjcrane 2016-08-23 01:21:33 +00:00
parent 771fcd29bb
commit 603568893c
1 changed files with 6 additions and 5 deletions

View File

@ -1,8 +1,4 @@
#move source files to package directories
cp -R /usr/local/freeswitch/conf /etc/freeswitch
cp -R /usr/local/freeswitch/recordings/* /var/lib/freeswitch/recordings
cp -R /usr/local/freeswitch/storage/* /var/lib/freeswitch/storage
cp -R /usr/local/freeswitch/scripts/* /usr/share/freeswitch/scripts
#!/bin/sh
#make sure the etc fusionpbx directory exists
mkdir -p /etc/fusionpbx
@ -17,3 +13,8 @@ $(dirname $0)/package-release.sh
#install freeswitch systemd.d
$(dirname $0)/package-systemd.sh
#move source files to package directories
rsync -avz /usr/local/freeswitch/conf /etc/freeswitch
rsync -avz /usr/local/freeswitch/recordings /var/lib/freeswitch
rsync -avz /usr/local/freeswitch/storage /var/lib/freeswitch
rsync -avz /usr/local/freeswitch/scripts /usr/share/freeswitch