~ubuntu-branches/ubuntu/precise/quassel/precise-security

« back to all changes in this revision

Viewing changes to debian/quassel-core.preinst

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2011-09-12 00:06:01 UTC
  • Revision ID: package-import@ubuntu.com-20110912000601-fljukd4jjpko7mpb
Tags: 0.7.3-0ubuntu2
* Set permissions of /var/lib/quassel and /var/log/quassel to 750.
  (LP: #846922)
* Set permissions of /var/lib/quassel/quasselCert.pem to 640.
* Update home dir of quasselcore user and stop the daemon before doing so.
* Drop quasselcore-makecert script since it's completely broken since at
  least lucid and there is no need to update the self-signed certificate.
* Drop README.source since the package has been converted to the 3.0 (quilt)
  format.
* Update watch file so it only matches real version numbers.
* Bump Standards-Version to 3.9.2, no changes needed.
* Use kde debhelper buildsystem instead of calling the kubuntu l10n scripts
  manually.
* Fix typo in quasselcore init script so it waits 5 seconds before checking
  if quasselcore started successfully. (LP: #777191)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
    if [ -e "$DIR" ]; then
9
9
            if [ -n "/var/lib/quassel/" ]; then
10
10
                mkdir "/var/lib/quassel/"
 
11
                chown quasselcore:quassel /var/lib/quassel/
 
12
                chmod 750 /var/lib/quassel/
11
13
            fi
12
14
            mv /var/cache/quassel/* /var/lib/quassel/
13
15
            mv /var/cache/quassel/.config  /var/lib/quassel/
24
26
        chown quasselcore:quassel /var/lib/quassel/
25
27
      fi
26
28
    fi
 
29
    if dpkg --compare-versions "$2" le "0.7.3-0ubuntu1"; then
 
30
      if [ -d "/var/lib/quassel/" ]; then
 
31
        chmod 750 /var/lib/quassel/
 
32
      fi
 
33
      if [ -d "/var/log/quassel/" ]; then
 
34
        chmod 750 /var/log/quassel/
 
35
      fi
 
36
      if [ -f "/var/lib/quassel/quasselCert.pem" ]; then
 
37
        chmod 640 /var/lib/quassel/quasselCert.pem
 
38
      fi
 
39
 
 
40
      echo "Stopping quasselcore to update user home dir ..."
 
41
      invoke-rc.d quasselcore stop
 
42
      sleep 5 # wait some time for the daemon to shut down
 
43
      usermod --home /var/lib/quassel quasselcore
 
44
    fi
27
45
esac
28
46
 
29
47
#DEBHELPER#