Files
Arch-R/packages/sysutils/autoupdate/install
Stephan Raue ea3750ddb5 autoupdate:
- looking every 6 hours for an update
2010-04-13 00:48:46 +02:00

20 lines
485 B
Bash
Executable File

#!/bin/sh
. config/options
PKG_DIR=`find $PACKAGES -type d -name $1`
mkdir -p $INSTALL/usr/bin
if [ "$DEVTOOLS" = "yes" ]; then
cp -P $PKG_DIR/scripts/autoupdate.devel $INSTALL/usr/bin/autoupdate
else
cp -P $PKG_DIR/scripts/autoupdate.release $INSTALL/usr/bin/autoupdate
fi
mkdir -p $INSTALL/usr/config
cp -P $PKG_DIR/config/update.conf $INSTALL/usr/config
mkdir -p $INSTALL/etc/crontabs
echo -e "* */6 * * *\t/usr/bin/autoupdate" >> $INSTALL/etc/crontabs/root