Allow more customization for backup app deployment
This commit is contained in:
parent
2a6b25215f
commit
2fcb81e0ae
4 changed files with 47 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue