tomasino's ideas
This commit is contained in:
parent
a48dd54bb9
commit
221798b2a5
|
@ -32,9 +32,8 @@ install_scripts() {
|
||||||
full_path="${install_dir}/${f}"
|
full_path="${install_dir}/${f}"
|
||||||
cp "$f" "$install_dir"
|
cp "$f" "$install_dir"
|
||||||
printf "Copied %s to %s.\\n" "$f" "$full_path"
|
printf "Copied %s to %s.\\n" "$f" "$full_path"
|
||||||
chmod +x "%s" "$full_path"
|
chmod +x "$full_path"
|
||||||
printf "Made %s executable.\\n" "$full_path"
|
printf "Made %s executable.\\n\\n" "$full_path"
|
||||||
printf ""
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
6
setup.sh
6
setup.sh
|
@ -105,9 +105,9 @@ setup_keys() {
|
||||||
key_type=$(head -n 1 "$key_path" \
|
key_type=$(head -n 1 "$key_path" \
|
||||||
| cut -f 2 -d ' ' \
|
| cut -f 2 -d ' ' \
|
||||||
| tr '[:upper:]' '[:lower:]')
|
| tr '[:upper:]' '[:lower:]')
|
||||||
test -d "$ssh_dir" || mkdir "$ssh_dir"
|
test -d "$ssh_dir" || mkdir -p "$ssh_dir"
|
||||||
test -d "$ssh_host_dir" || mkdir "$ssh_host_dir"
|
test -d "$ssh_host_dir" || mkdir -p "$ssh_host_dir"
|
||||||
printf "Key appears to be of type \"%s\"." "$key_type\\n"
|
printf "Key appears to be of type \"%s\".\\n" "$key_type"
|
||||||
printf "Generating public key...\\n"
|
printf "Generating public key...\\n"
|
||||||
ssh-keygen -y -f "$key_path" > "${ssh_host_dir}/id_${key_type}.pub"
|
ssh-keygen -y -f "$key_path" > "${ssh_host_dir}/id_${key_type}.pub"
|
||||||
printf "Copying private key...\\n"
|
printf "Copying private key...\\n"
|
||||||
|
|
Loading…
Reference in New Issue