update for using module.base instead of module.lib
parent
5cdfacadb0
commit
51877424e7
|
@ -2,3 +2,4 @@
|
|||
*archive*
|
||||
/ssh/config/_config
|
||||
base.code-workspace
|
||||
/module.lib
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue