diff --git a/rattail_fabric/backup.py b/rattail_fabric/backup.py index c73bf05..9150f53 100644 --- a/rattail_fabric/backup.py +++ b/rattail_fabric/backup.py @@ -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):