|
|
|
@ -65,12 +65,12 @@ deploy_ssh_authorized_keys () {
|
|
|
|
|
return
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ! -x "$(command -v curl)" ]; then
|
|
|
|
|
if ! command -v curl; then
|
|
|
|
|
echo "Could not find or execute curl. Exiting." >&2
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ! -x "$(command -v mktemp)" ]; then
|
|
|
|
|
if ! command -v mktemp; then
|
|
|
|
|
echo "Could not find or execute mktemp. Exiting." >&2
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
@ -89,7 +89,7 @@ deploy_ssh_authorized_keys () {
|
|
|
|
|
|
|
|
|
|
grow_root_partition () {
|
|
|
|
|
growpart_script='uncloud-init-growpart'
|
|
|
|
|
if [ -x "$(command -v "$growpart_script")" ]; then
|
|
|
|
|
if command -v "$growpart_script"; then
|
|
|
|
|
# TODO: this command seems quite fragile...
|
|
|
|
|
# sh growpart -q /dev/vda 3 > /dev/null;
|
|
|
|
|
true # no-op
|
|
|
|
|