hostname
This commit is contained in:
parent
755e938876
commit
275b8bdf2c
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
function ovh-rescue-configure {
|
function ovh-rescue-configure {
|
||||||
|
local host="${1}"
|
||||||
local packages=(
|
local packages=(
|
||||||
'byobu' 'mosh'
|
'byobu' 'mosh'
|
||||||
)
|
)
|
||||||
|
@ -24,7 +25,7 @@ deb https://deb.debian.org/debian-security buster/updates main contrib non-free
|
||||||
# bash / rc
|
# bash / rc
|
||||||
main_link_bashrc
|
main_link_bashrc
|
||||||
# host name
|
# host name
|
||||||
hostname 'ovh'
|
hostname "${host}"
|
||||||
# locales
|
# locales
|
||||||
echo -n "\
|
echo -n "\
|
||||||
en_US.UTF-8 UTF-8
|
en_US.UTF-8 UTF-8
|
||||||
|
@ -100,7 +101,7 @@ if [ "${host}" ] ; then
|
||||||
rsync --delete --recursive "${MAIN_BASH_ROOT}/" "${user_host}:/etc/bash/"
|
rsync --delete --recursive "${MAIN_BASH_ROOT}/" "${user_host}:/etc/bash/"
|
||||||
# call setup
|
# call setup
|
||||||
# TODO variable
|
# TODO variable
|
||||||
ssh "${user_host}" -- "source '/etc/bash/main.sh' ; ovh-rescue-configure"
|
ssh "${user_host}" -- "source '/etc/bash/main.sh' ; ovh-rescue-configure '${host}'"
|
||||||
# create session
|
# create session
|
||||||
ssh "${user_host}" -- byobu new-session -d
|
ssh "${user_host}" -- byobu new-session -d
|
||||||
# send keys
|
# send keys
|
||||||
|
|
Loading…
Reference in a new issue