Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if ! whoami | grep -q root; then echo Run it as root.; echo; exit 1; fi
- CHROOTDIR="/chroot"
- if ! [ -x "$CHROOTDIR" ]
- then
- echo Chroot directory doesn"'"t exists.
- echo
- exit 1
- fi
- schroot -d ~ -- apt-get clean
- schroot -d ~ -- apt-get update
- schroot -d ~ -- apt-get -y upgrade
- echo
- echo done.
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment