From af45160113940023c2ecd9c80f38ffc094c93051 Mon Sep 17 00:00:00 2001 From: Dimitar Dimitrov Date: Fri, 10 May 2024 10:08:42 +0300 Subject: [PATCH 1/2] [#328] Add all components in the .goreleaser file Signed-off-by: Dimitar Dimitrov --- .github/workflows/release.yaml | 26 ++++ .goreleaser.yaml | 221 +++++++++++++++++++++++++++++++++ build/postinst | 16 ++- build/postinst_rpm | 4 + build/postrm | 6 + build/postrm_rpm | 2 + build/prerm | 2 + build/prerm_rpm | 2 + 8 files changed, 278 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 56cdf219..9ae68fff 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -83,6 +83,20 @@ jobs: path: ${{ env.BUILD_TMP }}/update-manager ref: ${{ github.ref }} token: ${{ secrets.WF_AUTH }} + - name: Checkout azure-connector + uses: actions/checkout@v2 + with: + repository: eclipse-kanto/azure-connector + path: ${{ env.BUILD_TMP }}/azure-connector + ref: ${{ github.ref }} + token: ${{ secrets.WF_AUTH }} + - name: Checkout aws-connector + uses: actions/checkout@v2 + with: + repository: eclipse-kanto/aws-connector + path: ${{ env.BUILD_TMP }}/aws-connector + ref: ${{ github.ref }} + token: ${{ secrets.WF_AUTH }} - name: Setup Go uses: actions/setup-go@v2 with: @@ -143,6 +157,18 @@ jobs: go test -v -race ./... -coverprofile coverage.out -covermode atomic go tool cover -func=coverage.out -o coverage.txt go tool cover -html=coverage.out -o coverage.html + - name: Generate azure-connector Coverage + working-directory: ${{ env.BUILD_TMP }}/azure-connector + run: | + go test ./... -v -coverprofile coverage.out -tags=unit + go tool cover -func=coverage.out -o coverage.txt + go tool cover -html=coverage.out -o coverage.html + - name: Generate aws-connector Coverage + working-directory: ${{ env.BUILD_TMP }}/aws-connector + run: | + go test ./... -v -coverprofile coverage.out -tags=unit + go tool cover -func=coverage.out -o coverage.txt + go tool cover -html=coverage.out -o coverage.html - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index c2cd6756..039ba91a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -245,6 +245,7 @@ builds: - -s -w -X main.version={{ .Version }} mod_timestamp: '{{ .CommitTimestamp }}' # local-digital-twins builds + # local-digital-twins builds - id: build-local-digital-twins dir: ./build-tmp/local-digital-twins main: ./cmd/twins @@ -292,6 +293,7 @@ builds: - -s -w -X main.version={{ .Version }} mod_timestamp: '{{ .CommitTimestamp }}' # suite-bootstrapping builds + # suite-bootstrapping builds - id: build-suite-bootstrapping dir: ./build-tmp/suite-bootstrapping main: ./cmd/bootstrapping @@ -339,6 +341,7 @@ builds: - -s -w -X main.version={{ .Version }} mod_timestamp: '{{ .CommitTimestamp }}' # file-backup builds + # file-backup builds - id: build-file-backup dir: ./build-tmp/file-backup main: ./ @@ -386,6 +389,7 @@ builds: - -s -w -X main.version={{ .Version }} mod_timestamp: '{{ .CommitTimestamp }}' # system-metrics builds + # system-metrics builds - id: build-system-metrics dir: ./build-tmp/system-metrics main: ./cmd/metrics @@ -433,6 +437,7 @@ builds: - -s -w -X main.version={{ .Version }} mod_timestamp: '{{ .CommitTimestamp }}' # update-manager builds + # update-manager builds - id: build-update-manager dir: ./build-tmp/update-manager main: ./cmd/update-manager @@ -479,6 +484,100 @@ builds: ldflags: - -s -w -X main.version={{ .Version }} mod_timestamp: '{{ .CommitTimestamp }}' + # azure-connector builds + - id: build-azure-connector + dir: ./build-tmp/azure-connector + main: ./cmd/azure-connector + binary: azure-connector/azure-connector + goos: + - linux + goarch: + - amd64 + - arm + - arm64 + goarm: + - 7 + flags: + - -mod=readonly + - -v + - -trimpath + asmflags: + - all=-trimpath={{ .Env.GOPATH }} + gcflags: + - all=-trimpath={{ .Env.GOPATH }} + ldflags: + - -s -w -X main.version={{ .Version }} + mod_timestamp: '{{ .CommitTimestamp }}' + - id: build-azure-connector-pkg + dir: ./build-tmp/azure-connector + main: ./cmd/azure-connector + binary: azure-connector + goos: + - linux + goarch: + - amd64 + - arm + - arm64 + goarm: + - 7 + flags: + - -mod=readonly + - -v + - -trimpath + asmflags: + - all=-trimpath={{ .Env.GOPATH }} + gcflags: + - all=-trimpath={{ .Env.GOPATH }} + ldflags: + - -s -w -X main.version={{ .Version }} + mod_timestamp: '{{ .CommitTimestamp }}' + # aws-connector builds + - id: build-aws-connector + dir: ./build-tmp/aws-connector + main: ./cmd/aws-connector + binary: aws-connector/aws-connector + goos: + - linux + goarch: + - amd64 + - arm + - arm64 + goarm: + - 7 + flags: + - -mod=readonly + - -v + - -trimpath + asmflags: + - all=-trimpath={{ .Env.GOPATH }} + gcflags: + - all=-trimpath={{ .Env.GOPATH }} + ldflags: + - -s -w -X main.version={{ .Version }} + mod_timestamp: '{{ .CommitTimestamp }}' + - id: build-aws-connector-pkg + dir: ./build-tmp/aws-connector + main: ./cmd/aws-connector + binary: aws-connector + goos: + - linux + goarch: + - amd64 + - arm + - arm64 + goarm: + - 7 + flags: + - -mod=readonly + - -v + - -trimpath + asmflags: + - all=-trimpath={{ .Env.GOPATH }} + gcflags: + - all=-trimpath={{ .Env.GOPATH }} + ldflags: + - -s -w -X main.version={{ .Version }} + mod_timestamp: '{{ .CommitTimestamp }}' archives: - id: kanto-archive-all name_template: '{{ .ProjectName }}_{{ .Version }}_linux_{{ if .Amd64 }}x86_64{{ else if .Arm }}armv7{{ else }}{{ .Arch }}{{ end }}' @@ -493,6 +592,8 @@ archives: - build-file-backup - build-system-metrics - build-update-manager + - build-azure-connector + - build-aws-connector files: # common files - LICENSE @@ -565,6 +666,28 @@ archives: strip_parent: true info: mode: 0644 + # azure-connector additional files + - src: ./build-tmp/azure-connector/NOTICE.md + dst: azure-connector + strip_parent: true + info: + mode: 0644 + - src: ./build-tmp/azure-connector/cmd/azure-connector/iothub.crt + dst: azure-connector + strip_parent: true + info: + mode: 0644 + # aws-connector additional files + - src: ./build-tmp/aws-connector/NOTICE.md + dst: aws-connector + strip_parent: true + info: + mode: 0644 + - src: ./build-tmp/aws-connector/cmd/aws-connector/aws.crt + dst: aws-connector + strip_parent: true + info: + mode: 0644 - id: code-coverage name_template: '{{ .ProjectName }}_{{ .Version }}_code_coverage' meta: true @@ -704,6 +827,36 @@ archives: strip_parent: true info: mode: 0644 + - src: ./build-tmp/azure-connector/coverage.html + dst: azure-connector + strip_parent: true + info: + mode: 0644 + - src: ./build-tmp/azure-connector/coverage.txt + dst: azure-connector + strip_parent: true + info: + mode: 0644 + - src: ./build-tmp/azure-connector/coverage.out + dst: azure-connector + strip_parent: true + info: + mode: 0644 + - src: ./build-tmp/aws-connector/coverage.html + dst: aws-connector + strip_parent: true + info: + mode: 0644 + - src: ./build-tmp/aws-connector/coverage.txt + dst: aws-connector + strip_parent: true + info: + mode: 0644 + - src: ./build-tmp/aws-connector/coverage.out + dst: aws-connector + strip_parent: true + info: + mode: 0644 nfpms: - builds: - build-suite-connector-pkg @@ -716,6 +869,8 @@ nfpms: - build-file-backup-pkg - build-system-metrics-pkg - build-update-manager-pkg + - build-azure-connector-pkg + - build-aws-connector-pkg bindir: /usr/bin file_name_template: '{{ .ProjectName }}_{{ .Version }}_linux_{{ if .Amd64 }}x86_64{{ else if .Arm }}armv7{{ else }}{{ .Arch }}{{ end }}' maintainer: Contributors to the Eclipse Foundation, Kanto Project @@ -1026,6 +1181,72 @@ nfpms: dst: /usr/share/doc/kanto-update-manager/LICENSE file_info: mode: 0644 + # azure-connector additional resources + - src: ./build-tmp/azure-connector/resources/azure-connector.service + dst: /etc/systemd/system/azure-connector.service + file_info: + mode: 0644 + packager: deb + - src: ./build-tmp/azure-connector/resources/azure-connector.service + dst: /usr/lib/systemd/system/azure-connector.service + file_info: + mode: 0644 + packager: rpm + - src: ./build-tmp/azure-connector/resources/config.json + dst: /etc/azure-connector/config.json + type: config + file_info: + mode: 0644 + - src: ./build-tmp/azure-connector/cmd/azure-connector/iothub.crt + dst: /etc/azure-connector/iothub.crt + type: config + file_info: + mode: 0644 + - src: ./build-tmp/azure-connector/NOTICE.md + dst: /usr/share/doc/azure-connector/NOTICE.md + file_info: + mode: 0644 + - src: ./build-tmp/azure-connector/README.md + dst: /usr/share/doc/azure-connector/README.md + file_info: + mode: 0644 + - src: ./build-tmp/azure-connector/LICENSE + dst: /usr/share/doc/azure-connector/LICENSE + file_info: + mode: 0644 + # aws-connector additional resources + - src: ./build-tmp/aws-connector/resources/aws-connector.service + dst: /etc/systemd/system/aws-connector.service + file_info: + mode: 0644 + packager: deb + - src: ./build-tmp/aws-connector/resources/aws-connector.service + dst: /usr/lib/systemd/system/aws-connector.service + file_info: + mode: 0644 + packager: rpm + - src: ./build-tmp/aws-connector/resources/config.json + dst: /etc/aws-connector/config.json + type: config + file_info: + mode: 0644 + - src: ./build-tmp/aws-connector/cmd/aws-connector/aws.crt + dst: /etc/aws-connector/aws.crt + type: config + file_info: + mode: 0644 + - src: ./build-tmp/aws-connector/NOTICE.md + dst: /usr/share/doc/aws-connector/NOTICE.md + file_info: + mode: 0644 + - src: ./build-tmp/aws-connector/README.md + dst: /usr/share/doc/aws-connector/README.md + file_info: + mode: 0644 + - src: ./build-tmp/aws-connector/LICENSE + dst: /usr/share/doc/aws-connector/LICENSE + file_info: + mode: 0644 checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' snapshot: diff --git a/build/postinst b/build/postinst index e48fdb58..2ba67208 100644 --- a/build/postinst +++ b/build/postinst @@ -17,6 +17,20 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-decon deb-systemd-helper update-state 'suite-connector.service' >/dev/null || true fi + # This will only remove masks created by d-s-h on package removal. + deb-systemd-helper unmask 'azure-connector.service' >/dev/null || true + + # Update the statefile to add new symlinks (if any), which need to be + # cleaned up on purge. Also remove old symlinks. + deb-systemd-helper update-state 'azure-connector.service' >/dev/null || true + + # This will only remove masks created by d-s-h on package removal. + deb-systemd-helper unmask 'aws-connector.service' >/dev/null || true + + # Update the statefile to add new symlinks (if any), which need to be + # cleaned up on purge. Also remove old symlinks. + deb-systemd-helper update-state 'aws-connector.service' >/dev/null || true + # This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask 'local-digital-twins.service' >/dev/null || true @@ -101,7 +115,7 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-decon deb-systemd-helper update-state 'system-metrics.service' >/dev/null || true fi - # This will only remove masks created by d-s-h on package removal. + # This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask 'kanto-update-manager.service' >/dev/null || true # was-enabled defaults to true, so new installations run enable. diff --git a/build/postinst_rpm b/build/postinst_rpm index dac77d82..d202c54b 100644 --- a/build/postinst_rpm +++ b/build/postinst_rpm @@ -11,6 +11,8 @@ if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then # Install the Kanto services /usr/lib/systemd/systemd-update-helper install-system-units suite-connector.service || : + /usr/lib/systemd/systemd-update-helper install-system-units azure-connector.service || : + /usr/lib/systemd/systemd-update-helper install-system-units aws-connector.service || : /usr/lib/systemd/systemd-update-helper install-system-units local-digital-twins.service || : /usr/lib/systemd/systemd-update-helper install-system-units suite-bootstrapping.service || : /usr/lib/systemd/systemd-update-helper install-system-units container-management.service || : @@ -23,6 +25,8 @@ if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then # Start the Kanto services if enabled if [ -d /run/systemd/system ]; then systemctl is-enabled -q suite-connector.service && systemctl start suite-connector.service >/dev/null || : + systemctl is-enabled -q azure-connector.service && systemctl azure suite-connector.service >/dev/null || : + systemctl is-enabled -q aws-connector.service && systemctl start aws-connector.service >/dev/null || : systemctl is-enabled -q local-digital-twins.service && systemctl start local-digital-twins.service >/dev/null || : systemctl is-enabled -q suite-bootstrapping.service && systemctl start suite-bootstrapping.service >/dev/null || : systemctl is-enabled -q container-management.service && systemctl start container-management.service >/dev/null || : diff --git a/build/postrm b/build/postrm index ddd02cb7..c92ee2b8 100644 --- a/build/postrm +++ b/build/postrm @@ -15,6 +15,8 @@ if [ "$1" = "remove" ]; then deb-systemd-helper mask 'container-management.service' >/dev/null || true deb-systemd-helper mask 'suite-bootstrapping.service' >/dev/null || true deb-systemd-helper mask 'local-digital-twins.service' >/dev/null || true + deb-systemd-helper mask 'aws-connector.service' >/dev/null || true + deb-systemd-helper mask 'azure-connector.service' >/dev/null || true deb-systemd-helper mask 'suite-connector.service' >/dev/null || true fi fi @@ -37,6 +39,10 @@ if [ "$1" = "purge" ]; then deb-systemd-helper unmask 'suite-bootstrapping.service' >/dev/null || true deb-systemd-helper purge 'local-digital-twins.service' >/dev/null || true deb-systemd-helper unmask 'local-digital-twins.service' >/dev/null || true + deb-systemd-helper purge 'aws-connector.service' >/dev/null || true + deb-systemd-helper unmask 'aws-connector.service' >/dev/null || true + deb-systemd-helper purge 'azure-connector.service' >/dev/null || true + deb-systemd-helper unmask 'azure-connector.service' >/dev/null || true deb-systemd-helper purge 'suite-connector.service' >/dev/null || true deb-systemd-helper unmask 'suite-connector.service' >/dev/null || true fi diff --git a/build/postrm_rpm b/build/postrm_rpm index 3f7f7bfb..afb3f741 100644 --- a/build/postrm_rpm +++ b/build/postrm_rpm @@ -3,6 +3,8 @@ if [ $1 -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then # Mark the Kanto services for restart, including ones that are usually disabled by default /usr/lib/systemd/systemd-update-helper mark-restart-system-units suite-connector.service || : + /usr/lib/systemd/systemd-update-helper mark-restart-system-units azure-connector.service || : + /usr/lib/systemd/systemd-update-helper mark-restart-system-units aws-connector.service || : /usr/lib/systemd/systemd-update-helper mark-restart-system-units local-digital-twins.service || : /usr/lib/systemd/systemd-update-helper mark-restart-system-units suite-bootstrapping.service || : /usr/lib/systemd/systemd-update-helper mark-restart-system-units container-management.service || : diff --git a/build/prerm b/build/prerm index b9af77e1..0452511f 100644 --- a/build/prerm +++ b/build/prerm @@ -8,5 +8,7 @@ if [ -d /run/systemd/system ] && [ "$1" = remove ]; then deb-systemd-invoke stop 'container-management.service' >/dev/null || true deb-systemd-invoke stop 'suite-bootstrapping.service' >/dev/null || true deb-systemd-invoke stop 'local-digital-twins.service' >/dev/null || true + deb-systemd-invoke stop 'azure-connector.service' >/dev/null || true + deb-systemd-invoke stop 'aws-connector.service' >/dev/null || true deb-systemd-invoke stop 'suite-connector.service' >/dev/null || true fi \ No newline at end of file diff --git a/build/prerm_rpm b/build/prerm_rpm index b990aae7..999a1e2b 100644 --- a/build/prerm_rpm +++ b/build/prerm_rpm @@ -10,6 +10,8 @@ if [ $1 -eq 0 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then /usr/lib/systemd/systemd-update-helper remove-system-units container-management.service || : /usr/lib/systemd/systemd-update-helper remove-system-units suite-bootstrapping.service || : /usr/lib/systemd/systemd-update-helper remove-system-units local-digital-twins.service || : + /usr/lib/systemd/systemd-update-helper remove-system-units azure-connector.service || : + /usr/lib/systemd/systemd-update-helper remove-system-units aws-connector.service || : /usr/lib/systemd/systemd-update-helper remove-system-units suite-connector.service || : # Reload systemd From 195cb1f830477f32dfbe91dbb2e72f072ce78006 Mon Sep 17 00:00:00 2001 From: Dimitar Dimitrov Date: Fri, 10 May 2024 11:10:56 +0300 Subject: [PATCH 2/2] Remove suite-bootstraping from build Signed-off-by: Dimitar Dimitrov --- .github/workflows/release.yaml | 13 ---- .goreleaser.yaml | 111 --------------------------------- build/postinst | 8 --- build/postinst_rpm | 2 - build/postrm | 3 - build/postrm_rpm | 1 - build/prerm | 1 - build/prerm_rpm | 1 - 8 files changed, 140 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9ae68fff..39588d7f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -55,13 +55,6 @@ jobs: path: ${{ env.BUILD_TMP }}/local-digital-twins ref: ${{ github.ref }} token: ${{ secrets.WF_AUTH }} - - name: Checkout suite-bootstrapping - uses: actions/checkout@v2 - with: - repository: eclipse-kanto/suite-bootstrapping - path: ${{ env.BUILD_TMP }}/suite-bootstrapping - ref: ${{ github.ref }} - token: ${{ secrets.WF_AUTH }} - name: Checkout file-backup uses: actions/checkout@v2 with: @@ -133,12 +126,6 @@ jobs: go test ./... -v -coverprofile coverage.out -tags=unit go tool cover -func=coverage.out -o coverage.txt go tool cover -html=coverage.out -o coverage.html - - name: Generate suite-bootstrapping Coverage - working-directory: ${{ env.BUILD_TMP }}/suite-bootstrapping - run: | - go test ./... -v -coverprofile coverage.out -tags=unit - go tool cover -func=coverage.out -o coverage.txt - go tool cover -html=coverage.out -o coverage.html - name: Generate file-backup Coverage run: | go test ./... -v -coverprofile coverage.out -tags=unit diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 039ba91a..94c4a3b6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -244,7 +244,6 @@ builds: ldflags: - -s -w -X main.version={{ .Version }} mod_timestamp: '{{ .CommitTimestamp }}' - # local-digital-twins builds # local-digital-twins builds - id: build-local-digital-twins dir: ./build-tmp/local-digital-twins @@ -292,55 +291,6 @@ builds: ldflags: - -s -w -X main.version={{ .Version }} mod_timestamp: '{{ .CommitTimestamp }}' - # suite-bootstrapping builds - # suite-bootstrapping builds - - id: build-suite-bootstrapping - dir: ./build-tmp/suite-bootstrapping - main: ./cmd/bootstrapping - binary: suite-bootstrapping/suite-bootstrapping - goos: - - linux - goarch: - - amd64 - - arm - - arm64 - goarm: - - 7 - flags: - - -mod=readonly - - -v - - -trimpath - asmflags: - - all=-trimpath={{ .Env.GOPATH }} - gcflags: - - all=-trimpath={{ .Env.GOPATH }} - ldflags: - - -s -w -X main.version={{ .Version }} - mod_timestamp: '{{ .CommitTimestamp }}' - - id: build-suite-bootstrapping-pkg - dir: ./build-tmp/suite-bootstrapping - main: ./cmd/bootstrapping - binary: suite-bootstrapping - goos: - - linux - goarch: - - amd64 - - arm - - arm64 - goarm: - - 7 - flags: - - -mod=readonly - - -v - - -trimpath - asmflags: - - all=-trimpath={{ .Env.GOPATH }} - gcflags: - - all=-trimpath={{ .Env.GOPATH }} - ldflags: - - -s -w -X main.version={{ .Version }} - mod_timestamp: '{{ .CommitTimestamp }}' - # file-backup builds # file-backup builds - id: build-file-backup dir: ./build-tmp/file-backup @@ -588,7 +538,6 @@ archives: - build-file-upload - build-software-update - build-local-digital-twins - - build-suite-bootstrapping - build-file-backup - build-system-metrics - build-update-manager @@ -637,17 +586,6 @@ archives: strip_parent: true info: mode: 0644 - # suite-bootstrapping additional files - - src: ./build-tmp/suite-bootstrapping/NOTICE.md - dst: suite-bootstrapping - strip_parent: true - info: - mode: 0644 - - src: ./build-tmp/suite-bootstrapping/cmd/bootstrapping/iothub.crt - dst: suite-bootstrapping - strip_parent: true - info: - mode: 0644 # file-backup additional files - src: ./build-tmp/file-backup/NOTICE.md dst: file-backup @@ -767,21 +705,6 @@ archives: strip_parent: true info: mode: 0644 - - src: ./build-tmp/suite-bootstrapping/coverage.html - dst: suite-bootstrapping - strip_parent: true - info: - mode: 0644 - - src: ./build-tmp/suite-bootstrapping/coverage.txt - dst: suite-bootstrapping - strip_parent: true - info: - mode: 0644 - - src: ./build-tmp/suite-bootstrapping/coverage.out - dst: suite-bootstrapping - strip_parent: true - info: - mode: 0644 - src: ./build-tmp/file-backup/coverage.html dst: file-backup strip_parent: true @@ -865,7 +788,6 @@ nfpms: - build-file-upload-pkg - build-software-update-pkg - build-local-digital-twins-pkg - - build-suite-bootstrapping-pkg - build-file-backup-pkg - build-system-metrics-pkg - build-update-manager-pkg @@ -1064,39 +986,6 @@ nfpms: dst: /usr/share/doc/local-digital-twins/LICENSE file_info: mode: 0644 - # suite-bootstrapping additional resources - - src: ./build-tmp/suite-bootstrapping/resources/suite-bootstrapping.service - dst: /etc/systemd/system/suite-bootstrapping.service - file_info: - mode: 0644 - packager: deb - - src: ./build-tmp/suite-bootstrapping/resources/suite-bootstrapping.service - dst: /usr/lib/systemd/system/suite-bootstrapping.service - file_info: - mode: 0644 - packager: rpm - - src: ./build-tmp/suite-bootstrapping/resources/config.json - dst: /etc/suite-bootstrapping/config.json - type: config - file_info: - mode: 0644 - - src: ./build-tmp/suite-bootstrapping/cmd/bootstrapping/iothub.crt - dst: /etc/suite-bootstrapping/iothub.crt - type: config - file_info: - mode: 0644 - - src: ./build-tmp/suite-bootstrapping/NOTICE.md - dst: /usr/share/doc/suite-bootstrapping/NOTICE.md - file_info: - mode: 0644 - - src: ./build-tmp/suite-bootstrapping/README.md - dst: /usr/share/doc/suite-bootstrapping/README.md - file_info: - mode: 0644 - - src: ./build-tmp/suite-bootstrapping/LICENSE - dst: /usr/share/doc/suite-bootstrapping/LICENSE - file_info: - mode: 0644 # file-backup additional resources - src: ./build-tmp/file-backup/resources/file-backup.service dst: /etc/systemd/system/file-backup.service diff --git a/build/postinst b/build/postinst index 2ba67208..22146fd8 100644 --- a/build/postinst +++ b/build/postinst @@ -38,13 +38,6 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-decon # cleaned up on purge. Also remove old symlinks. deb-systemd-helper update-state 'local-digital-twins.service' >/dev/null || true - # This will only remove masks created by d-s-h on package removal. - deb-systemd-helper unmask 'suite-bootstrapping.service' >/dev/null || true - - # Update the statefile to add new symlinks (if any), which need to be - # cleaned up on purge. Also remove old symlinks. - deb-systemd-helper update-state 'suite-bootstrapping.service' >/dev/null || true - # This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask 'container-management.service' >/dev/null || true @@ -142,7 +135,6 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-decon fi deb-systemd-invoke $_dh_action 'suite-connector.service' >/dev/null || true deb-systemd-invoke $_dh_action 'local-digital-twins.service' >/dev/null || true - deb-systemd-invoke $_dh_action 'suite-bootstrapping.service' >/dev/null || true deb-systemd-invoke $_dh_action 'container-management.service' >/dev/null || true deb-systemd-invoke $_dh_action 'file-upload.service' >/dev/null || true deb-systemd-invoke $_dh_action 'software-update.service' >/dev/null || true diff --git a/build/postinst_rpm b/build/postinst_rpm index d202c54b..db0edb79 100644 --- a/build/postinst_rpm +++ b/build/postinst_rpm @@ -14,7 +14,6 @@ if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then /usr/lib/systemd/systemd-update-helper install-system-units azure-connector.service || : /usr/lib/systemd/systemd-update-helper install-system-units aws-connector.service || : /usr/lib/systemd/systemd-update-helper install-system-units local-digital-twins.service || : - /usr/lib/systemd/systemd-update-helper install-system-units suite-bootstrapping.service || : /usr/lib/systemd/systemd-update-helper install-system-units container-management.service || : /usr/lib/systemd/systemd-update-helper install-system-units file-upload.service || : /usr/lib/systemd/systemd-update-helper install-system-units software-update.service || : @@ -28,7 +27,6 @@ if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then systemctl is-enabled -q azure-connector.service && systemctl azure suite-connector.service >/dev/null || : systemctl is-enabled -q aws-connector.service && systemctl start aws-connector.service >/dev/null || : systemctl is-enabled -q local-digital-twins.service && systemctl start local-digital-twins.service >/dev/null || : - systemctl is-enabled -q suite-bootstrapping.service && systemctl start suite-bootstrapping.service >/dev/null || : systemctl is-enabled -q container-management.service && systemctl start container-management.service >/dev/null || : systemctl is-enabled -q file-upload.service && systemctl start file-upload.service >/dev/null || : systemctl is-enabled -q software-update.service && systemctl start software-update.service >/dev/null || : diff --git a/build/postrm b/build/postrm index c92ee2b8..b14805b9 100644 --- a/build/postrm +++ b/build/postrm @@ -13,7 +13,6 @@ if [ "$1" = "remove" ]; then deb-systemd-helper mask 'software-update.service' >/dev/null || true deb-systemd-helper mask 'file-upload.service' >/dev/null || true deb-systemd-helper mask 'container-management.service' >/dev/null || true - deb-systemd-helper mask 'suite-bootstrapping.service' >/dev/null || true deb-systemd-helper mask 'local-digital-twins.service' >/dev/null || true deb-systemd-helper mask 'aws-connector.service' >/dev/null || true deb-systemd-helper mask 'azure-connector.service' >/dev/null || true @@ -35,8 +34,6 @@ if [ "$1" = "purge" ]; then deb-systemd-helper unmask 'file-upload.service' >/dev/null || true deb-systemd-helper purge 'container-management.service' >/dev/null || true deb-systemd-helper unmask 'container-management.service' >/dev/null || true - deb-systemd-helper purge 'suite-bootstrapping.service' >/dev/null || true - deb-systemd-helper unmask 'suite-bootstrapping.service' >/dev/null || true deb-systemd-helper purge 'local-digital-twins.service' >/dev/null || true deb-systemd-helper unmask 'local-digital-twins.service' >/dev/null || true deb-systemd-helper purge 'aws-connector.service' >/dev/null || true diff --git a/build/postrm_rpm b/build/postrm_rpm index afb3f741..1f57b53b 100644 --- a/build/postrm_rpm +++ b/build/postrm_rpm @@ -6,7 +6,6 @@ if [ $1 -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then /usr/lib/systemd/systemd-update-helper mark-restart-system-units azure-connector.service || : /usr/lib/systemd/systemd-update-helper mark-restart-system-units aws-connector.service || : /usr/lib/systemd/systemd-update-helper mark-restart-system-units local-digital-twins.service || : - /usr/lib/systemd/systemd-update-helper mark-restart-system-units suite-bootstrapping.service || : /usr/lib/systemd/systemd-update-helper mark-restart-system-units container-management.service || : /usr/lib/systemd/systemd-update-helper mark-restart-system-units file-upload.service || : /usr/lib/systemd/systemd-update-helper mark-restart-system-units software-update.service || : diff --git a/build/prerm b/build/prerm index 0452511f..188142a1 100644 --- a/build/prerm +++ b/build/prerm @@ -6,7 +6,6 @@ if [ -d /run/systemd/system ] && [ "$1" = remove ]; then deb-systemd-invoke stop 'software-update.service' >/dev/null || true deb-systemd-invoke stop 'file-upload.service' >/dev/null || true deb-systemd-invoke stop 'container-management.service' >/dev/null || true - deb-systemd-invoke stop 'suite-bootstrapping.service' >/dev/null || true deb-systemd-invoke stop 'local-digital-twins.service' >/dev/null || true deb-systemd-invoke stop 'azure-connector.service' >/dev/null || true deb-systemd-invoke stop 'aws-connector.service' >/dev/null || true diff --git a/build/prerm_rpm b/build/prerm_rpm index 999a1e2b..1339472a 100644 --- a/build/prerm_rpm +++ b/build/prerm_rpm @@ -8,7 +8,6 @@ if [ $1 -eq 0 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then /usr/lib/systemd/systemd-update-helper remove-system-units software-update.service || : /usr/lib/systemd/systemd-update-helper remove-system-units file-upload.service || : /usr/lib/systemd/systemd-update-helper remove-system-units container-management.service || : - /usr/lib/systemd/systemd-update-helper remove-system-units suite-bootstrapping.service || : /usr/lib/systemd/systemd-update-helper remove-system-units local-digital-twins.service || : /usr/lib/systemd/systemd-update-helper remove-system-units azure-connector.service || : /usr/lib/systemd/systemd-update-helper remove-system-units aws-connector.service || :