Allow alternate python3 for backup app environment
This commit is contained in:
parent
0199902118
commit
f20c7e4b52
|
@ -48,6 +48,7 @@ def deploy_backup_everything(**context):
|
|||
|
||||
|
||||
def deploy_backup_app(deploy, envname, mkvirtualenv=True, user='rattail',
|
||||
python_exe='/usr/bin/python3',
|
||||
config=None, everything=None, crontab=None, runat=UNSPECIFIED):
|
||||
"""
|
||||
Make an app which can run backups for the server.
|
||||
|
@ -64,7 +65,7 @@ def deploy_backup_app(deploy, envname, mkvirtualenv=True, user='rattail',
|
|||
|
||||
# virtualenv
|
||||
if mkvirtualenv:
|
||||
python.mkvirtualenv(envname, python='/usr/bin/python3', upgrade_setuptools=False)
|
||||
python.mkvirtualenv(envname, python=python_exe, upgrade_setuptools=False)
|
||||
envpath = '/srv/envs/{}'.format(envname)
|
||||
sudo('chown -R {}: {}'.format(user, envpath))
|
||||
with cd(envpath):
|
||||
|
|
Loading…
Reference in a new issue