Merci @Aleks, je tente ça !
$ sudo yunohost app upgrade borg --force
Info: Now upgrading borg...
Info: [++..................] > Backing up the app before upgrading (may take a while)...
Info: [##++................] > Ensuring downward compatibility...
Info: [####++..............] > Upgrading dependencies...
Info: [######++............] > Configuring system user...
Info: [########+++.........] > Upgrading borgbackup...
Info: Installing/compiling borg, this may take some time...
Info: [###########++.......] > Setting up backup method...
Warning: File /etc/yunohost/hooks.d/backup_method/05-borg_app has been manually modified since the installation or last upgrade. So it has been duplicated in /var/cache/yunohost/appconfbackup//etc/yunohost/hooks.d/backup_method/05-borg_app.backup.20220928.114626
Warning: --- /var/cache/yunohost/appconfbackup//etc/yunohost/hooks.d/backup_method/05-borg_app.backup.20220928.114626 2022-04-09 13:14:41.033750053 +0000
Warning: +++ /etc/yunohost/hooks.d/backup_method/05-borg_app 2022-09-28 11:46:28.185122380 +0000
Warning: @@ -7,9 +7,9 @@
Warning: BORG_PASSPHRASE="$(yunohost app setting $app passphrase)"
Warning: repo="$(yunohost app setting $app repository)" #$4
Warning: if ssh-keygen -F "artanux.be" >/dev/null ; then
Warning: - BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -p 12345 -oStrictHostKeyChecking=yes "
Warning: + BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=yes "
Warning: else
Warning: - BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -p 12345 -oStrictHostKeyChecking=no "
Warning: + BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=no "
Warning: fi
Warning: do_need_mount() {
Info: [#############++.....] > Upgrading systemd configuration...
Info: [###############++...] > Integrating service in YunoHost...
Info: [####################] > Upgrade of borg completed
Success! borg upgraded
Success! Upgrade complete
(Le port “12345” n’est pas celui que j’utilise.)
$ ls -al /opt/borg-env/bin/
total 56
drwxr-xr-x 2 root root 4096 Sep 28 11:46 .
drwxr-xr-x 6 root root 4096 Sep 28 11:46 ..
-rw-r--r-- 1 root root 1892 Sep 28 11:39 activate
-rw-r--r-- 1 root root 841 Sep 28 11:39 activate.csh
-rw-r--r-- 1 root root 1981 Sep 28 11:39 activate.fish
-rw-r--r-- 1 root root 8834 Sep 28 11:39 Activate.ps1
-rwxr-xr-x 1 root root 220 Sep 28 11:46 borg
-rwxr-xr-x 1 root root 220 Sep 28 11:46 borgfs
-rwxr-xr-x 1 root root 229 Sep 28 11:39 pip
-rwxr-xr-x 1 root root 229 Sep 28 11:39 pip3
-rwxr-xr-x 1 root root 229 Sep 28 11:39 pip3.9
lrwxrwxrwx 1 root root 7 Sep 28 11:39 python -> python3
lrwxrwxrwx 1 root root 16 Sep 28 11:39 python3 -> /usr/bin/python3
lrwxrwxrwx 1 root root 7 Sep 28 11:39 python3.9 -> python3
-rwxr-xr-x 1 root root 216 Sep 28 11:39 wheel
Ça semble bon! Borg est à nouveau au bon emplacement.
J’ai à nouveau rajouté le port dans le bon fichier :
$ sudo vim /etc/yunohost/hooks.d/backup_method/05-borg_app
(...)
Et puis relancer le service:
$ sudo systemctl start borg