Skip to content

Commit

Permalink
Fixup cloud-config permissions (#1322)
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
  • Loading branch information
mudler authored May 14, 2022
1 parent cfd2845 commit 1e1809e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/cloud-config/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ requires:

steps:
- mkdir -p {{.Values.oem_dir}}
- chmod 700 {{.Values.oem_dir}}
- cp -rfv oem/{{.Values.oem_file}} {{.Values.oem_dir}}
- chmod -R 600 {{.Values.oem_dir}}
- chmod 600 {{.Values.oem_dir}}/{{.Values.oem_file}}
{{ if .Values.templated }}
- cos-tmpl-render {{.Values.oem_dir}}/{{.Values.oem_file}}
{{ end }}
Expand All @@ -26,4 +27,4 @@ steps:
- sed -i 's/:ARCH:/-arm64/g' {{.Values.oem_dir}}/02_upgrades.yaml
{{end}}
{{end}}
{{ end }}
{{ end }}
2 changes: 1 addition & 1 deletion packages/cloud-config/collection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ packages:
oem_dir: "/system/oem"
templated: true
category: cloud-config
version: "0.2"
version: "0.2.1"
requires:
- name: "cos-setup"
category: "system"
Expand Down

0 comments on commit 1e1809e

Please sign in to comment.