From 51877424e73ad4a22d4484ba808fd67036fc8f7a Mon Sep 17 00:00:00 2001 From: David Kebler Date: Wed, 20 Dec 2023 17:21:48 -0800 Subject: [PATCH] update for using module.base instead of module.lib --- .gitignore | 1 + install/files/etc/bash.bashrc | 2 +- install/files/etc/profile | 4 ++-- install/files/user/.bashrc | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c66d297..10ff724 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *archive* /ssh/config/_config base.code-workspace +/module.lib diff --git a/install/files/etc/bash.bashrc b/install/files/etc/bash.bashrc index feb99d3..d0c7d90 100644 --- a/install/files/etc/bash.bashrc +++ b/install/files/etc/bash.bashrc @@ -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 \ No newline at end of file diff --git a/install/files/etc/profile b/install/files/etc/profile index 9484057..de8e483 100644 --- a/install/files/etc/profile +++ b/install/files/etc/profile @@ -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 diff --git a/install/files/user/.bashrc b/install/files/user/.bashrc index b520c93..577712c 100644 --- a/install/files/user/.bashrc +++ b/install/files/user/.bashrc @@ -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