From acb7052bee65c43f3b22c0034e373259215575c1 Mon Sep 17 00:00:00 2001 From: Ola Thoresen Date: Tue, 28 Nov 2023 14:53:33 +0100 Subject: [PATCH] Also deploy to lighthouse - different path to ogconfig-cli --- deploy/opengear.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/opengear.sh b/deploy/opengear.sh index 3d502aef..15f96a1c 100644 --- a/deploy/opengear.sh +++ b/deploy/opengear.sh @@ -59,7 +59,8 @@ opengear_deploy() { fi _info "Deploying to $_opengear_host" - _cmdstr="sudo echo -e \"set services.https.certificate =$(cat "$_cfullchain" | base64 -w0)\nset services.https.private_key =$(cat "$_ckey" | base64 -w0)\npush\" | /usr/unsupported/bin/ogconfig-cli" + _cmdstr="sudo echo -e \"set services.https.certificate =$(cat "$_cfullchain" | base64 -w0)\nset services.https.private_key =$(cat "$_ckey" | base64 -w0)\npush\" | /usr/bin/ogconfig-cli || \ + sudo echo -e \"set services.https.certificate =$(cat "$_cfullchain" | base64 -w0)\nset services.https.private_key =$(cat "$_ckey" | base64 -w0)\npush\" | /usr/unsupported/bin/ogconfig-cli" _info "will deploy new certificate" if ! _ssh_remote_cmd "$_cmdstr"; then return "$_err_code"