summarylogtreecommitdiffstats
path: root/pisg.install
blob: 5549296c782818cc5ce09bf34a20e4325d4adc50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pre_upgrade() {
  [[ -e /etc/pisg ]] && {
    echo "Backing up your layout-directory (/etc/pisg/layout) to /etc/pisg/backup"
    [[ ! -e /etc/pisg/backup ]] && {
		  mkdir -v /etc/pisg/backup
    }
	  cp -av /etc/pisg/layout /etc/pisg/backup
  }
  /bin/true
}

op=$1 
shift 
$op $*