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:
parent
e94d93b062
commit
6a3580234d
1 changed files with 12 additions and 9 deletions
|
@ -116,6 +116,9 @@ ynh_script_progression --message="End of upgrade process" --last
|
||||||
# making removal in multi-instance cases break the remaining
|
# making removal in multi-instance cases break the remaining
|
||||||
# instances.
|
# instances.
|
||||||
# So we need to add the delimiters if they are missing
|
# 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
|
grep -q "begin ${app}" /root/.ssh/config
|
||||||
missing_delimiters="$?"
|
missing_delimiters="$?"
|
||||||
if [ "$missing_delimiters" -eq 1 ];then
|
if [ "$missing_delimiters" -eq 1 ];then
|
||||||
|
|
Loading…
Add table
Reference in a new issue