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

fix: ssh upgrade

This commit is contained in:
Lionel Coupouchetty-Ramouchetty 2021-02-28 20:11:40 +01:00
parent e94d93b062
commit 6a3580234d

View file

@ -116,6 +116,9 @@ ynh_script_progression --message="End of upgrade process" --last
# making removal in multi-instance cases break the remaining
# instances.
# So we need to add the delimiters if they are missing
set +o errexit
set +o nounset
private_key="/root/.ssh/id_${app}_ed25519"
grep -q "begin ${app}" /root/.ssh/config
missing_delimiters="$?"
if [ "$missing_delimiters" -eq 1 ];then