From 603568893cfc8db30cc16475b3c7e71242705733 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Tue, 23 Aug 2016 01:21:33 +0000 Subject: [PATCH] Use rsync instead of cp as it provides better feedback --- debian/resources/switch/source-to-package.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/debian/resources/switch/source-to-package.sh b/debian/resources/switch/source-to-package.sh index 635f70f..381409f 100755 --- a/debian/resources/switch/source-to-package.sh +++ b/debian/resources/switch/source-to-package.sh @@ -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