Skip to content

Commit

Permalink
Copy config file during deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
lutien authored and jgraham committed May 16, 2024
1 parent 5bc53a2 commit 79399b6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ if [ "$#" -ne 2 ]; then
exit 1
fi

if [ ! -z ${WPT_CONFIG} ]; then
if [ ! -f ${PWD}/config/prod/sync.ini ]; then
echo Please add a sync.ini file to ${PWD}/config/prod
# Config file will be copied from `sync_prod.ini` and updated by default.
# To disable it set WPT_CONFIG=false
if [[ ${WPT_CONFIG} != "false" ]]; then
if [ ! -d ${PWD}/config/prod ]; then
mkdir ${PWD}/config/prod/
fi
cp ${PWD}/sync_prod.ini ${PWD}/config/prod/sync.ini
echo Created config file ${PWD}/config/prod/sync.ini from ${PWD}/sync_prod.ini
fi

if [ ! -z ${WPT_CREDENTIALS} ]; then
Expand Down

0 comments on commit 79399b6

Please sign in to comment.