preinst is in radosgw-agent 1.2.7-0ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/sh -e
# can be removed after systemd migration
DEFAULT_FILE=/etc/default/radosgw-agent
if [ "$1" = upgrade ]; then
if [ -f $DEFAULT_FILE ] && egrep -sqi 'ENABLED="?yes' $DEFAULT_FILE; then
# once the override file is installed, we'll remove it to reenable the upstart job
touch ${DEFAULT_FILE}.enable
fi
fi
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/default/radosgw-agent 1.1-0ubuntu2~ -- "$@"
# End automatically added section
exit 0
|