Archived
1
0

Fix scripts for FreeBSD

This commit is contained in:
Mercier Pierre-Olivier 2013-10-05 22:00:54 +02:00
parent 9981ac3346
commit b126a0400a
2 changed files with 12 additions and 4 deletions

View File

@ -23,6 +23,11 @@ then
fi fi
done 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" ] elif [ "$KERNEL" = "Linux" ]
then then

View File

@ -19,8 +19,6 @@ else
CMD="tail -n 50" CMD="tail -n 50"
fi fi
TMP=`mktemp`
DIRS="./" DIRS="./"
if [ -d "/var/log/hooks/" ] if [ -d "/var/log/hooks/" ]
then then
@ -40,9 +38,14 @@ then
else 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 ] while [ $# -gt 0 ]
do do