wip/env
This commit is contained in:
parent
05710e7ef7
commit
672b385447
2 changed files with 4 additions and 8 deletions
10
bash/main.sh
10
bash/main.sh
|
@ -1,9 +1,5 @@
|
||||||
#! /usr/bin/env bash
|
main_env_root() {
|
||||||
|
dirname "${ENV}"
|
||||||
MAIN_USERS_FILE="$(realpath --canonicalize-existing "${BASH_SOURCE[0]}")"
|
|
||||||
|
|
||||||
main_get_root() {
|
|
||||||
dirname "${MAIN_USERS_FILE}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main_link_bashrc() {
|
main_link_bashrc() {
|
||||||
|
@ -45,4 +41,4 @@ main_import_modules() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# import modules
|
# import modules
|
||||||
main_import_modules "${MAIN_USERS_FILE}"
|
main_import_modules "${ENV}"
|
||||||
|
|
|
@ -85,7 +85,7 @@ rescue_upload() {
|
||||||
"${user_host}"
|
"${user_host}"
|
||||||
# upload root
|
# upload root
|
||||||
rsync --delete --recursive \
|
rsync --delete --recursive \
|
||||||
"$(main_get_root)/" "${user_host}:/etc/bash/"
|
"$(main_env_root)" "${user_host}:/etc"
|
||||||
# call setup
|
# call setup
|
||||||
# TODO variable
|
# TODO variable
|
||||||
ssh "${user_host}" -- "\
|
ssh "${user_host}" -- "\
|
||||||
|
|
Loading…
Reference in a new issue