1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borg_ynh.git synced 2024-09-03 18:16:05 +02:00

[fix] Bookworm install

This commit is contained in:
ljf (zamentur) 2024-04-10 23:18:53 +02:00 committed by GitHub
parent 9a2347b9ab
commit 215b23fef5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -7,7 +7,7 @@ name = "Borg Backup"
description.en = "Backup your server on a host server using Borg" description.en = "Backup your server on a host server using Borg"
description.fr = "Sauvegardez votre serveur sur un serveur distant avec Borg" description.fr = "Sauvegardez votre serveur sur un serveur distant avec Borg"
version = "1.1.16~ynh30" version = "1.2.8~ynh1"
maintainers = ["ljf"] maintainers = ["ljf"]
@ -92,6 +92,6 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
"python3-setuptools", "python3-setuptools",
"python3-venv", "python3-venv",
"virtualenv", "virtualenv",
"libfuse-dev", "libfuse3-dev",
"pkg-config", "pkg-config",
] ]

View file

@ -4,7 +4,7 @@
# COMMON VARIABLES # COMMON VARIABLES
#================================================= #=================================================
BORG_VERSION=1.1.16 BORG_VERSION=1.2.8
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS
@ -19,9 +19,9 @@ install_borg_with_pip () {
python3 -m venv /opt/borg-env python3 -m venv /opt/borg-env
/opt/borg-env/bin/python /opt/borg-env/bin/pip install pip -U /opt/borg-env/bin/python /opt/borg-env/bin/pip install pip -U
/opt/borg-env/bin/python /opt/borg-env/bin/pip install setuptools -U /opt/borg-env/bin/python /opt/borg-env/bin/pip install setuptools -U
/opt/borg-env/bin/python /opt/borg-env/bin/pip install wheel /opt/borg-env/bin/python /opt/borg-env/bin/pip install wheel -U
ynh_print_info --message="Installing/compiling borg, this may take some time..." ynh_print_info --message="Installing/compiling borg, this may take some time..."
/opt/borg-env/bin/python /opt/borg-env/bin/pip install borgbackup[fuse]==$BORG_VERSION /opt/borg-env/bin/python /opt/borg-env/bin/pip install borgbackup[pyfuse3]==$BORG_VERSION
echo "#!/bin/bash echo "#!/bin/bash
/opt/borg-env/bin/python /opt/borg-env/bin/borg \"\$@\"" > /usr/local/bin/borg /opt/borg-env/bin/python /opt/borg-env/bin/borg \"\$@\"" > /usr/local/bin/borg
touch "/opt/borg-env/$(ynh_get_debian_release)" touch "/opt/borg-env/$(ynh_get_debian_release)"