Remplacé echo par msg_log
[hvlinux.git] / stage2 / install-hv-utilities
index da17a9b..1a4d46f 100755 (executable)
@@ -1,11 +1,6 @@
 #!/bin/bash
 
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
+source ../functions/main
 
 SRCDIR="./hv-utilities"
 PREFIX="/usr/local"
@@ -20,4 +15,8 @@ for program in ${BIN_UTILITIES}; do
     install -v ${SRCDIR}/${program} ${BINDIR}
 done
 
+# Install fcrontab for rotatelogs
+echo "# Rotate logs every day at 00:05" > /etc/fcron/fcron.d/rotatelogs
+echo "&mail(false) 05 00 * * * ${BINDIR}/rotatelogs" >> /etc/fcron/fcron.d/rotatelogs
+
 exit $?