YunoHost-Apps / borg_ynh

An experimental Borg implementation for YunoHost
https://www.borgbackup.org/
GNU Affero General Public License v3.0
19 stars 23 forks source link

Update ADMIN.md #164

Closed alexAubin closed 9 hours ago

SimonLefort commented 1 week ago

When I try to prepare the environment :

app=borg
source /var/www/$app/venv/bin/activate
(...)

I have an error :

$ source /var/www/$app/venv/bin/activate
bash: /var/www/borg/venv/bin/activate: No such file or directory

My solution ( https://github.com/YunoHost-Apps/borg_ynh/pull/167 ) :

borg="/var/www/borg/venv/bin/borg"
alexAubin commented 1 week ago

Hmpf, the lack of activate script seems related to using --upgrade when creating the venv ...

@Salamandar : do you understand why you added --upgrade in https://github.com/YunoHost-Apps/borg_ynh/commit/ea3f6e34920d821bf3309758d9f33cffa9ab3082 ? x_x

alexAubin commented 1 week ago

Anyway reading the activate script, it basically just prepends /full/path/to/venv/bin to the $PATH var so we can also just do this ...