Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 35 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35 Rev 73
Line 19... Line 19...
19
19
20
case "$1" in
20
case "$1" in
21
    configure)
21
    configure)
22
	adduser --quiet --system --no-create-home --home /var/run/prayer prayer
22
	adduser --quiet --system --no-create-home --home /var/run/prayer prayer
23
23
24
        dpkg-statoverride --list /var/run/prayer >/dev/null 2>&1 \
-
 
25
            || dpkg-statoverride --update --add prayer root 2750 /var/run/prayer
-
 
26
-
 
27
        dpkg-statoverride --list /var/log/prayer >/dev/null 2>&1 \
24
        dpkg-statoverride --list /var/log/prayer >/dev/null 2>&1 \
28
            || dpkg-statoverride --update --add prayer adm 2750 /var/log/prayer
25
            || dpkg-statoverride --update --add prayer adm 2750 /var/log/prayer
29
26
-
 
27
        if dpkg --compare-versions "$2" lt "1.2.2.1-7" &&
-
 
28
            dpkg-statoverride --list /var/run/prayer >/dev/null 2>&1; then
-
 
29
            dpkg-statoverride --remove /var/run/prayer
-
 
30
        fi
-
 
31
30
    # Add prayer user to the ssl-cert group on upgrades or fresh installs
32
    # Add prayer user to the ssl-cert group on upgrades or fresh installs
31
    if dpkg --compare-versions "$2" lt "1.2.2.1-1"; then
33
    if dpkg --compare-versions "$2" lt "1.2.2.1-1"; then
32
        if getent group ssl-cert >/dev/null; then
34
        if getent group ssl-cert >/dev/null; then
33
            adduser --quiet prayer ssl-cert
35
            adduser --quiet prayer ssl-cert
34
        fi
36
        fi