]> piware.de Git - bin.git/blob - preinst-backup
postinst-setup: install flashplugin-installer
[bin.git] / preinst-backup
1 #!/bin/sh -ex
2
3 if [ -n "`cd /etc; bzr modified`" ]; then
4     echo "uncommitted changes in /etc, aborting" >&2
5     exit 1
6 fi
7
8 # push /etc/
9 (cd /etc; HOME=/home/martin bzr push)
10
11 # copy backup to ~
12 if [ -d /home/martin/backup ]; then
13     echo "/home/martin/backup exists already, aborting" >&2
14     exit 1
15 fi
16 [ ! -d /var/backups/martin/ ] || cp -a /var/backups/martin/ /home/martin/backup