Try launch configuration as non-hidden file

This commit is contained in:
2023-11-04 20:44:37 +01:00
parent 3a424d359f
commit c6b6023094
3 changed files with 3 additions and 3 deletions
@@ -17,7 +17,7 @@ package_reboot_if_required: true
write_files: write_files:
- owner: root:root - owner: root:root
content: "${microk8s_config}" content: "${microk8s_config}"
path: /run/tmpfiles.d/.microk8s.yaml path: /run/tmpfiles.d/microk8s.yaml
encoding: base64 encoding: base64
defer: true defer: true
- owner: root:root - owner: root:root
@@ -17,7 +17,7 @@ package_reboot_if_required: true
write_files: write_files:
- owner: root:root - owner: root:root
content: "${microk8s_config}" content: "${microk8s_config}"
path: /run/tmpfiles.d/.microk8s.yaml path: /run/tmpfiles.d/microk8s.yaml
encoding: base64 encoding: base64
defer: true defer: true
- owner: root:root - owner: root:root
@@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
mkdir -p /var/snap/microk8s/common/etc/launcher mkdir -p /var/snap/microk8s/common/etc/launcher
cp /run/tmpfiles.d/.microk8s.yaml /var/snap/microk8s/common/etc/launcher/.microk8s.yaml cp /run/tmpfiles.d/microk8s.yaml /var/snap/microk8s/common/etc/launcher/microk8s.yaml
%{ if !main_node ~} %{ if !main_node ~}
sleep 120 sleep 120
%{ endif ~} %{ endif ~}