update-inary-cache 229 Bytes
Newer Older
Ali Rıza Keskin's avatar
Ali Rıza Keskin committed
1 2 3 4 5
#!/bin/bash
if [ $UID -ne 0 ] ; then
    echo "You must be root!"
     exit 1
fi
6 7 8
dest=""
[ "$1" == "" ] || dest="-D$1"
inary dc $dest
sulincix's avatar
sulincix committed
9
echo 2 > /proc/sys/vm/drop_caches
10 11
inary rdb $dest
inary ur $dest
12
inary up -c system.base $dest