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:
parent
7c7c50927c
commit
93396b2d6a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue