Files
home-cluster/bootstrap/templates/kubernetes/k0s/resources/hooks/reset-system.sh.j2
T
Devin Buhl 8339d142b7 feat: move various config options to advanced flags (#1217)
* feat: move various config options to advanced flags

Signed-off-by: Devin Buhl <devin@buhl.casa>

* fix: remove lp refs

Signed-off-by: Devin Buhl <devin@buhl.casa>

---------

Signed-off-by: Devin Buhl <devin@buhl.casa>
2024-01-21 09:53:25 -05:00

12 lines
278 B
Django/Jinja
Executable File

#% if bootstrap_distribution == 'k0s' %#
#!/usr/bin/env bash
[ $(id -u) -eq 0 ] || exec sudo $0 $@
# Remove local storage data
rm -rf "#{ bootstrap_advanced_flags.local_storage_path|default('/var/openebs/local', true) }#"
# Reboot
(sleep 10 && systemctl reboot)&
#% endif %#