preinst is in swift-container 1.13.1-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 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | #!/bin/sh
set -e
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/swift-container" ] && [ -L "/etc/init.d/swift-container" ] \
&& [ $(readlink -f "/etc/init.d/swift-container") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/swift-container"
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/swift-container-replicator" ] && [ -L "/etc/init.d/swift-container-replicator" ] \
&& [ $(readlink -f "/etc/init.d/swift-container-replicator") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/swift-container-replicator"
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/swift-container-auditor" ] && [ -L "/etc/init.d/swift-container-auditor" ] \
&& [ $(readlink -f "/etc/init.d/swift-container-auditor") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/swift-container-auditor"
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/swift-container-updater" ] && [ -L "/etc/init.d/swift-container-updater" ] \
&& [ $(readlink -f "/etc/init.d/swift-container-updater") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/swift-container-updater"
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/swift-container-sync" ] && [ -L "/etc/init.d/swift-container-sync" ] \
&& [ $(readlink -f "/etc/init.d/swift-container-sync") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/swift-container-sync"
fi
fi
# End automatically added section
|