Allow more customization for backup app deployment

This commit is contained in:
Lance Edgar 2018-07-05 13:19:20 -05:00
parent 2a6b25215f
commit 2fcb81e0ae
4 changed files with 47 additions and 17 deletions

View file

@ -2,10 +2,12 @@
if [ "$1" = "-v" -o "$1" = "--verbose" ]; then
VERBOSE='--verbose'
QUIET=
PROGRESS='--progress'
CONFIG='app/rattail.conf'
else
VERBOSE=
QUIET='--quiet'
PROGRESS=
CONFIG='app/silent.conf'
fi
@ -14,5 +16,15 @@ fi
cd /srv/envs/${envname}
RATTAIL="bin/rattail --config=$CONFIG $PROGRESS"
PIP='bin/pip'
export PIP_CONFIG_FILE=pip.conf
$PIP install --upgrade pip
cd src/rattail
sudo -u ${user} git pull $QUIET
sudo -u ${user} find . -name '*.pyc' -delete
cd -
$PIP install --upgrade --upgrade-strategy eager --editable src/rattail
$RATTAIL backup