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