1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
post_install() { echo "You can echo useless stuff at the user here." chmod +x /usr/bin/backup/backup PATH=$PATH:/usr/bin/backup } pre_upgrade () { backup=('/etc/backup.conf') } post_upgrade() { post_install } post_remove() { rm -rf /usr/bin/backup/backup }