mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-15 11:22:43 +03:00
Make it posible to override the init actions
This makes it easier to run parts of the actions when running tests.
This commit is contained in:
parent
d1ed0c29e3
commit
dd7cb23515
@ -10,19 +10,23 @@
|
|||||||
|
|
||||||
### default phase actions (without leading 'init__')
|
### default phase actions (without leading 'init__')
|
||||||
|
|
||||||
INIT_ACTIONS_EARLY="
|
DEFAULT_ACTIONS_EARLY="
|
||||||
expand_root
|
expand_root
|
||||||
install_hotplugs
|
install_hotplugs
|
||||||
set_default_interfaces
|
set_default_interfaces
|
||||||
create_default_user
|
create_default_user
|
||||||
enable_sshd
|
enable_sshd
|
||||||
"
|
"
|
||||||
INIT_ACTIONS_MAIN="
|
DEFAULT_ACTIONS_MAIN="
|
||||||
save_userdata
|
save_userdata
|
||||||
set_hostname
|
set_hostname
|
||||||
set_ssh_keys
|
set_ssh_keys
|
||||||
"
|
"
|
||||||
INIT_ACTIONS_FINAL=""
|
DEFAULT_ACTIONS_FINAL=""
|
||||||
|
|
||||||
|
: "${INIT_ACTIONS_EARLY=$DEFAULT_ACTIONS_EARLY}"
|
||||||
|
: "${INIT_ACTIONS_MAIN=$DEFAULT_ACTIONS_MAIN}"
|
||||||
|
: "${INIT_ACTIONS_FINAL=$DEFAULT_ACTIONS_FINAL}"
|
||||||
|
|
||||||
# try to ensure existence of output directories, but otherwise don't panic
|
# try to ensure existence of output directories, but otherwise don't panic
|
||||||
[ ! -d "$TINY_CLOUD_LOGS" ] && mkdir -p "$TINY_CLOUD_LOGS" || true
|
[ ! -d "$TINY_CLOUD_LOGS" ] && mkdir -p "$TINY_CLOUD_LOGS" || true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user