Install symlink for /usr/local/bin/borg
-> /srv/envs/backup/bin/borg
by default, but can skip if so invoked. makes for nicer usage though, for sure
This commit is contained in:
parent
6d9006db9d
commit
c933f36ed6
|
@ -54,6 +54,7 @@ def deploy_backup_everything(c, **context):
|
|||
|
||||
def deploy_backup_app(c, deploy, envname, mkvirtualenv=True, user='rattail',
|
||||
install_borg=False,
|
||||
link_borg_to_bin=True,
|
||||
install_rattail=True,
|
||||
config=None,
|
||||
rattail_backup_script=None,
|
||||
|
@ -123,6 +124,8 @@ def deploy_backup_app(c, deploy, envname, mkvirtualenv=True, user='rattail',
|
|||
'llfuse==1.3.4',
|
||||
]
|
||||
c.sudo("bash -l -c 'workon {} && cdvirtualenv && bin/pip install {}'".format(envname, ' '.join(packages)), user=user)
|
||||
if link_borg_to_bin:
|
||||
c.sudo("ln -sf {}/bin/borg /usr/local/bin/borg".format(envpath))
|
||||
|
||||
# backup-everything script
|
||||
if install_rattail or everything:
|
||||
|
|
Loading…
Reference in a new issue