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

config script: fix call to borg

This commit is contained in:
Salamandar 2024-05-15 22:33:30 +02:00
parent 178a24b268
commit cb09827eea

View file

@ -4,6 +4,8 @@ source /usr/share/yunohost/helpers
ynh_abort_if_errors
borg="$install_dir/venv/bin/borg"
#=================================================
# SPECIFIC GETTERS FOR TOML SHORT KEY
#=================================================
@ -46,8 +48,8 @@ get__data_multimedia() {
}
get__last_backups() {
cat << EOF
ask: |-
$(BORG_PASSPHRASE="$(ynh_app_setting_get $app passphrase)" BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=yes " borg list --short --last 50 ${old[repository]} | sed 's/^/ /g' 2> /dev/null)
ask: |-
$(BORG_PASSPHRASE="$(ynh_app_setting_get $app passphrase)" BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=yes " "$borg" list --short --last 50 ${old[repository]} | sed 's/^/ /g' 2> /dev/null)
EOF
}
@ -76,4 +78,3 @@ set__data_multimedia() {
# GENERIC FINALIZATION
#=================================================
ynh_app_config_run $1