2018-07-05 12:40:36 -05:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
if [ "$1" = "-v" -o "$1" = "--verbose" ]; then
|
|
|
|
VERBOSE='--verbose'
|
2018-07-05 13:19:20 -05:00
|
|
|
QUIET=
|
2018-07-05 12:40:36 -05:00
|
|
|
PROGRESS='--progress'
|
|
|
|
CONFIG='app/rattail.conf'
|
|
|
|
else
|
|
|
|
VERBOSE=
|
2018-07-05 13:19:20 -05:00
|
|
|
QUIET='--quiet'
|
2018-07-05 12:40:36 -05:00
|
|
|
PROGRESS=
|
|
|
|
CONFIG='app/silent.conf'
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
cd /srv/envs/${envname}
|
|
|
|
|
|
|
|
RATTAIL="bin/rattail --config=$CONFIG $PROGRESS"
|
2018-07-05 13:19:20 -05:00
|
|
|
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
|
2018-07-05 12:40:36 -05:00
|
|
|
|
|
|
|
$RATTAIL backup
|