Skip to content

Commit

Permalink
Added improvements
Browse files Browse the repository at this point in the history
Earlier proposed by @jo-pol, but in the wrong projects
  • Loading branch information
janvanmansum committed Aug 8, 2017
1 parent f728532 commit ad8a423
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-only-yum-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

PLAYBOOK=src/main/ansible/rebuild-repo.yml
INVENTORY=.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory
export ANSIBLE_CONFIG=`pwd`/src/main/ansible/ansible.cfg
export ANSIBLE_CONFIG=$(pwd)/src/main/ansible/ansible.cfg

CONTINUE=1

Expand Down
3 changes: 2 additions & 1 deletion run-reset-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
APPHOME=home
DATADIR=data
INIT_DEBUG_ENV_SCRIPT=./debug-init-env.sh
set -e

rm -fr $APPHOME
cp -r src/main/assembly/dist $APPHOME
cp src/test/resources/debug-config/* $APPHOME/cfg/

if [ -e $DATADIR ]; then
DATADIR_BACKUP=$DATADIR-`date +"%Y-%m-%d@%H:%M:%S"`
DATADIR_BACKUP=$DATADIR-$(date +"%Y-%m-%d@%H:%M:%S")
echo -n "Backing up existing data directory to $DATADIR_BACKUP..."
mv $DATADIR $DATADIR_BACKUP
echo "OK"
Expand Down

0 comments on commit ad8a423

Please sign in to comment.