1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/restic_ynh.git synced 2024-09-03 20:16:22 +02:00

fix upgrade

This commit is contained in:
Salamandar 2024-05-26 13:26:43 +02:00
parent 7c7c50927c
commit 93396b2d6a

View file

@ -27,9 +27,9 @@ fi
# multi-instance cases break the remaining instances.
# So we need to add the delimiters if they are missing
# The config will be re-added afterwards
if ! grep -q "begin ${app}" $ssh_dir/config; then
if ! grep -q "begin ${app}" /root/.ssh/config; then
# did not find delimiters so removing old configuration
sed -e "/Host ${server}/,+6d" "$ssh_dir/config" -i || true
sed -e "/Host ${server}/,+6d" "/root/.ssh/config" -i || true
fi
#=================================================