Skip to content

Commit

Permalink
DEV-2010: fix service name (#20)
Browse files Browse the repository at this point in the history
* use service name instead of package

* Fix path, no openvpn uploads

* serviceName, not serviceUnit

---------

Co-authored-by: Jon Henrik Bjørnstad <[email protected]>
  • Loading branch information
jonhenrik13 and jonhenrik13 authored Jan 29, 2024
1 parent 0d0af88 commit abe9d76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/configuration/bundle_software_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func (s Software) restart(ctx context.Context, srv *Service) {
cmd = []string{systemctlBin, "restart", serviceUnit}

// Make sure that qbee-agent is never restarted in blocking mode.
if s.Package == "qbee-agent" {
if serviceName == "qbee-agent" {
cmd = []string{systemctlBin, "--no-block", "restart", serviceUnit}
}

Expand Down
15 changes: 1 addition & 14 deletions script/upload-updates
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SCRIPT_DIR=$(cd $(dirname $0) && pwd)
BASEDIR=$(dirname $SCRIPT_DIR)
source $SCRIPT_DIR/config.env

COMMON_SRC_DIR="$BASEDIR/../../src"
COMMON_SRC_DIR="$BASEDIR/../platform/src"

SIGNING_KEY_PATH=$1
UPLOAD_AWS_REGION="${AWS_REGION:-eu-west-1}"
Expand Down Expand Up @@ -54,17 +54,4 @@ function upload_agent_update() {
done
}


function upload_openvpn_update() {

OPENVPN_BASE="$BASEDIR/../agent-v1/static/targets"

for arch in "${SUPPORTED_ARCHS[@]}"; do
echo "Uploading openvpn $VERSION $arch (file: $OPENVPN_BASE/${arch_openvpn[$arch]}/openvpn"
upload_update "openvpn" "$arch" "$OPENVPN_BASE/${arch_openvpn[$arch]}/openvpn"
done

}

upload_openvpn_update
upload_agent_update

0 comments on commit abe9d76

Please sign in to comment.