This commit is contained in:
parent
97ae253978
commit
8a64b55051
|
@ -16,7 +16,7 @@ get_distro() {
|
|||
}
|
||||
|
||||
setup_ssh() {
|
||||
tput setaf 2; tput bold; echo "Setting up SSH"; tput sgr0;
|
||||
tput setaf 2; echo "Setting up SSH"; tput sgr0;
|
||||
|
||||
mkdir -p $(dirname $ssh_authorized_keys_path)
|
||||
touch $ssh_authorized_keys_path
|
||||
|
@ -47,6 +47,8 @@ setup_ssh() {
|
|||
}
|
||||
|
||||
grow_partition() {
|
||||
tput setaf 2; echo "Growing Partition"; tput sgr0;
|
||||
|
||||
# TODO: Try to replace the growpart to parted
|
||||
wget https://git.launchpad.net/ubuntu/+source/cloud-utils/plain/bin/growpart
|
||||
if [ -e growpart ]; then
|
||||
|
@ -65,6 +67,8 @@ make_script_verbose() {
|
|||
}
|
||||
|
||||
setup_dns() {
|
||||
tput setaf 2; echo "Setting up DNS"; tput sgr0;
|
||||
|
||||
# Check if rdnssd is installed, if not put Google's DNS
|
||||
# into /etc/resolv.conf and install rdnssd for the next time
|
||||
if ! $(which rdnssd); then
|
||||
|
|
Loading…
Reference in New Issue