diff --git a/bash/main.sh b/bash/main.sh index 63d91f2..797aed1 100644 --- a/bash/main.sh +++ b/bash/main.sh @@ -1,13 +1,13 @@ #! /usr/bin/env bash -MAIN_SHELL_FILE="$(readlink --canonicalize-existing "${0}")" +MAIN_USERS_FILE="$(readlink --canonicalize-existing "${0}")" -MAIN_SHELL_ROOT="$(dirname "${MAIN_SHELL_FILE}")" +MAIN_USERS_ROOT="$(dirname "${MAIN_USERS_FILE}")" main_link_bashrc() { local file="/etc/bash.bashrc" rm --force "${file}" - ln --symbolic "${MAIN_SHELL_FILE}" "${file}" + ln --symbolic "${MAIN_USERS_FILE}" "${file}" } # import modules @@ -33,4 +33,4 @@ main_import_modules() { } # import modules -main_import_modules "${MAIN_SHELL_FILE}" +main_import_modules "${MAIN_USERS_FILE}" diff --git a/bash/rescue.sh b/bash/rescue.sh index 162985a..ded689d 100644 --- a/bash/rescue.sh +++ b/bash/rescue.sh @@ -85,7 +85,7 @@ rescue_upload() { "${user_host}" # upload root rsync --delete --recursive \ - "${MAIN_SHELL_ROOT}/" "${user_host}:/etc/bash/" + "${MAIN_USERS_ROOT}/" "${user_host}:/etc/bash/" # call setup # TODO variable ssh "${user_host}" -- "\