Skip to content

Commit

Permalink
change quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Stell0 committed May 23, 2024
1 parent 2cbfc03 commit 1fa8612
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ rsync -trv --owner --group --chown=990:991 -s --exclude-from=/usr/share/nethesis
rsync -trv --owner --group --chown=990:991 -s --delete /var/lib/asterisk/moh/ "${RSYNC_ENDPOINT}"/data/volumes/moh/
# translate local csv path
TMPPBCONFIG=$(mktemp -d)
cp -a /etc/phonebook/sources.d/* "${TMPPBCONFIG}"
sed "s#\"url\":\"file:\\\/\\\/\\\/var\\\/lib\\\/nethserver\\\/nethvoice\\\/phonebook\\\/uploads\\\/#\"url\":\"file:\\\/\\\/\\\/var\\\/lib\\\/nethvoice\\\/phonebook\\\/uploads\\\/#" "${TMPPBCONFIG}"/*
/bin/cp -a /etc/phonebook/sources.d/* "${TMPPBCONFIG}"
if [[ $(find "${TMPPBCONFIG}" -type f | wc -l) > 0 ]]; then
sed -i 's#"url":"file:\\\/\\\/\\\/var\\\/lib\\\/nethserver\\\/nethvoice\\\/phonebook\\\/uploads\\\/#"url":"file:\\\/\\\/\\\/var\\\/lib\\\/nethvoice\\\/phonebook\\\/uploads\\\/#' "${TMPPBCONFIG}"/*
fi
rsync -trcv --owner --group --chown=990:991 -s --delete "${TMPPBCONFIG}"/ "${RSYNC_ENDPOINT}"/data/volumes/pbooksources/
rm -fr "${TMPPBCONFIG}"
rsync -trv --owner --group --chown=990:991 -s --delete /var/lib/nethserver/nethvoice/phonebook/uploads/ "${RSYNC_ENDPOINT}"/data/volumes/phonebookcsv/
Expand Down

0 comments on commit 1fa8612

Please sign in to comment.