Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
fix undefined CX_BACKUP_FILE env variable bug #5
Browse files Browse the repository at this point in the history
  • Loading branch information
sinegar committed Jan 28, 2022
1 parent ef0a8dc commit c322568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-3cx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ if [ ! -d $var ]; then
echo Using existing /etc/3cxpbx/setupconfig.xml
else
# has backup?
if [ -f $CX_BACKUP_FILE ]; then
echo Restore from $CX_BACKUP_FILE ...
if [ -f ${CX_BACKUP_FILE:-/no-default-backup} ]; then
echo Restore from $CX_BACKUP_FILE (no WebConfig) ...
echo Generate default restore config /etc/3cxpbx/setupconfig.xml ...
mkdir /etc/3cxpbx
envsubst < /usr/local/share/3cx-restore-setupconfig.xml > /etc/3cxpbx/setupconfig.xml
Expand Down

0 comments on commit c322568

Please sign in to comment.