fix(login): every-hour script & env var

This commit is contained in:
Michel 2024-02-06 09:31:11 +01:00
parent e024a5e910
commit 47afe474a8
2 changed files with 6 additions and 3 deletions

View File

@ -7,12 +7,14 @@ alias xterm='xterm -bg black -fg white -fa Hack -fs 10'
## Cloud folder must exist
#
if [ -z "$NC_STORAGE" ]; then
echo "${fg[red]}NC_STORAGE environment variable not set."
autoload colors && colors
echo "${fg[cyan]}NC_STORAGE${fg[red]} environment variable not set."
exit 1
fi
if [ ! -d $NC_STORAGE ]; then
echo "${fg[cyan]}$NC_STORAGE ${fg[red]}is not a folder (in \$NC_STORAGE)."
autoload colors && colors
echo "${fg[cyan]}\$NC_STORAGE (=$NC_STORAGE)${fg[red]} is not a folder."
exit 2
fi

View File

@ -14,7 +14,8 @@ xterm -geometry 120x40 -title "Mount devices" -hold -e $HOME/bin/mount_dev.zsh
## Start periodic actions
#
$HOME/bin/every-hour.zsh
eval xterm -hold -e env $(cat ~/.config/environment.d/variables.conf) $HOME/bin/every-hour.zsh
## Wait for an Internet connection