update for using module.base instead of module.lib

master
David Kebler 2023-12-20 17:21:48 -08:00
parent 5cdfacadb0
commit 51877424e7
4 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
*archive*
/ssh/config/_config
base.code-workspace
/module.lib

View File

@ -21,5 +21,5 @@ else
export PATH=/bin:/usr/bin:/usr/local/bin
# loading just the module functions which will give access to load any module in shell dirs
# _BASH_SHELL_BASE_ is/was replaced by the deploy script with actual path
source _BASH_SHELL_BASE_/module.lib
source _BASH_SHELL_BASE_/module.base
fi

View File

@ -60,8 +60,8 @@ if [[ $SHELL_INTERACTIVE ]]; then
else
# this is non-interactive login (e.g. at user machine login)
if [[ $EUID -ne 0 ]] && [[ ! $SSH_SESSION ]]; then
export LOGIN_LOG=$HOME/logs/login.log
mkdir -p $HOME/logs
export LOGIN_LOG=$HOME/.logs/login.log
mkdir -p $HOME/.logs
touch $LOGIN_LOG
llog () {
echo "$@" >> $LOGIN_LOG 2>&1

View File

@ -19,6 +19,7 @@ if ( [[ $SHELL_INTERACTIVE ]] );then
echo no user shell directory at $BASH_SHELL_USER_DIR to process
echo creating one now
declare dir
mkdir -p $BASH_SHELL_USER_DIR
for dir in $(cat $BASH_SHELL_BASE/.bash-shell-include); do
mkdir -p $BASH_SHELL_USER_DIR/$dir
done