~cloud-init-dev/cloud-init/trunk

« back to all changes in this revision

Viewing changes to packages/debian/cloud-init.preinst

  • Committer: Scott Moser
  • Date: 2016-08-10 15:06:15 UTC
  • Revision ID: smoser@ubuntu.com-20160810150615-ma2fv107w3suy1ma
README: Mention move of revision control to git.

cloud-init development has moved its revision control to git.
It is available at 
  https://code.launchpad.net/cloud-init

Clone with 
  git clone https://git.launchpad.net/cloud-init
or
  git clone git+ssh://git.launchpad.net/cloud-init

For more information see
  https://git.launchpad.net/cloud-init/tree/HACKING.rst

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
# vi: ts=4 expandtab
3
 
 
4
 
cleanup_lp1552999() {
5
 
    local oldver="$1" last_bad_ver="0.7.7~bzr1178"
6
 
    dpkg --compare-versions "$oldver" le "$last_bad_ver" || return 0
7
 
    local hdir="/var/lib/systemd/deb-systemd-helper-enabled"
8
 
    hdir="$hdir/multi-user.target.wants" 
9
 
    local edir="/etc/systemd/system/multi-user.target.wants"
10
 
    rm -f "$hdir/cloud-config.service" "$hdir/cloud-final.service" \
11
 
        "$hdir/cloud-init-local.service" "$hdir/cloud-init.service"
12
 
}
13
 
 
14
 
 
15
 
if [ "$1" = "upgrade" ]; then
16
 
   oldver="$2"
17
 
   cleanup_lp1552999 "$oldver"
18
 
fi
19
 
 
20
 
#DEBHELPER#