![Jake Buchholz Göktürk](/assets/img/avatar_default.png)
* switch to tiny-cloud instead of tiny-ec2-bootstrap * set default NTP server, if configured * add default /etc/network/interfaces * add urlopen() timeout to mitigate ipv6 issues connecting to alpinelinux.org
15 lines
352 B
Bash
Executable File
15 lines
352 B
Bash
Executable File
#!/bin/sh -eu
|
|
# vim: ts=4 et:
|
|
|
|
[ -z "$DEBUG" ] || [ "$DEBUG" = 0 ] || set -x
|
|
|
|
TARGET=/mnt
|
|
|
|
einfo() {
|
|
printf '\n\033[1;7;36m> %s <\033[0m\n' "$@" >&2 # bold reversed cyan
|
|
}
|
|
|
|
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 |