~dexter/schroot-pkg/raring

« back to all changes in this revision

Viewing changes to debian/schroot.postinst

  • Committer: Package Import Robot
  • Author(s): Roger Leigh
  • Date: 2012-07-18 20:04:41 UTC
  • mfrom: (38.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20120718200441-q7jfoto24orn0v5z
Tags: 1.6.1-1
* New upstream stable release.
* schroot:
  - Remove invalid and obsolete symlinks which were being created
    on install and upgrade, and no longer create them
    (Closes: #681931).
  - Fix 15binfmt setup script to bind mount binfmt binary correctly
    (Closes: #677811).  Thanks to Vagrant Cascadian and Julian Andres
    Klode.
  - Building from git has been documented, as has the upstream
    release process (Closes: #680882).
* dchroot:
  - Migrate dchroot.conf to schroot.conf format on upgrade
    (Closes: #681876).  Also documented caveats in NEWS.Debian.
* dchroot-dsa:
  - Migrate dchroot.conf to schroot.conf format on upgrade.
    Also documented caveats in NEWS.Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    fi
35
35
}
36
36
 
37
 
if dpkg --compare-versions "$2" le "1.4.0-1"; then
38
 
    mv_conffile "/etc/schroot/script-defaults" \
39
 
        "/etc/schroot/default/config"
40
 
    mv_conffile "/etc/schroot/mount-defaults" \
41
 
        "/etc/schroot/default/fstab"
42
 
    mv_conffile "/etc/schroot/copyfiles-defaults" \
43
 
        "/etc/schroot/default/copyfiles"
44
 
    mv_conffile "/etc/schroot/nssdatabases-defaults" \
45
 
        "/etc/schroot/default/nssdatabases"
46
 
fi
47
 
 
48
 
if dpkg --compare-versions "$2" le "1.4.1-1"; then
49
 
    ln -sf "/etc/schroot/default/config" \
50
 
        "/etc/schroot/script-defaults"
51
 
    ln -sf "/etc/schroot/default/fstab" \
52
 
        "/etc/schroot/mount-defaults"
53
 
    ln -sf "/etc/schroot/default/copyfiles" \
54
 
        "/etc/schroot/copyfiles-defaults"
55
 
    ln -sf "/etc/schroot/default/nssdatabases" \
56
 
        "/etc/schroot/nssdatabases-defaults"
57
 
fi
58
 
 
59
37
# This is needed in order to migrate from using rcS to standard runlevels.
60
38
if dpkg --compare-versions "$2" lt "1.6.0-1"; then
61
39
        update-rc.d -f schroot remove >/dev/null