2021-11-07 20:37:56 +00:00
|
|
|
#!/bin/sh -eu
|
|
|
|
# vim: ts=4 et:
|
|
|
|
|
2021-11-23 06:09:18 +00:00
|
|
|
[ -z "$DEBUG" ] || [ "$DEBUG" = 0 ] || set -x
|
2021-11-07 20:37:56 +00:00
|
|
|
|
|
|
|
TARGET=/mnt
|
|
|
|
|
|
|
|
einfo() {
|
|
|
|
printf '\n\033[1;7;36m> %s <\033[0m\n' "$@" >&2 # bold reversed cyan
|
|
|
|
}
|
|
|
|
|
2022-01-30 19:18:09 +00:00
|
|
|
einfo "Configuring Tiny Cloud..."
|
|
|
|
sed -i.bak -Ee "s/^#?CLOUD_USER=.*/CLOUD_USER=$IMAGE_LOGIN/" \
|
|
|
|
"$TARGET"/etc/conf.d/tiny-cloud
|
|
|
|
rm "$TARGET"/etc/conf.d/tiny-cloud.bak
|