* feat: implement mjfilter file for templates Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: use data.get in mjfilters Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
15 lines
303 B
Django/Jinja
Executable File
15 lines
303 B
Django/Jinja
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
set -o noglob
|
|
|
|
[ $(id -u) -eq 0 ] || exec sudo $0 $@
|
|
|
|
# Remove containerd config
|
|
rm -rf /etc/k0s/containerd.d
|
|
|
|
# Remove local storage data
|
|
rm -rf "#{ bootstrap_advanced_flags.local_storage_path|default('/var/openebs/local', true) }#"
|
|
|
|
# Reboot
|
|
(sleep 10 && systemctl reboot)&
|