diff --git a/commands/first-install.sh b/commands/first-install.sh index 7de5fff..ca42951 100755 --- a/commands/first-install.sh +++ b/commands/first-install.sh @@ -23,6 +23,11 @@ then fi done + if ! getent passwd | grep "intradmin:" > /dev/null 2> /dev/null + then + pw useradd intradmin -u 942 -d /data -s /bin/false + fi + elif [ "$KERNEL" = "Linux" ] then diff --git a/process/view_log.sh b/process/view_log.sh index 8b75f6e..dbb9fe9 100755 --- a/process/view_log.sh +++ b/process/view_log.sh @@ -19,8 +19,6 @@ else CMD="tail -n 50" fi -TMP=`mktemp` - DIRS="./" if [ -d "/var/log/hooks/" ] then @@ -40,9 +38,14 @@ then else - LIST=`mktemp` + if [ `uname -s` = "FreeBSD" ] + then + LIST=`mktemp lerdorf_log_XXXXX` + else + LIST=`mktemp` + fi - find $DIRS -name '*.log' > $LIST + find $DIRS -name '*.log' > "$LIST" while [ $# -gt 0 ] do