File: gridsite.postinst

package info (click to toggle)
gridsite 3.0.0~20240125git1200598-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,820 kB
  • sloc: ansic: 16,198; perl: 1,183; makefile: 463; sh: 372; xml: 252
file content (20 lines) | stat: -rw-r--r-- 605 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

#DEBHELPER#

if [ "$1" = "configure" ] &&
	dpkg --compare-versions "$2" le "1.7.25-2~" ; then
    if [ ! -r /var/lib/gridsite/.gacl -a -r /etc/gridsite/.gacl ] ; then \
	ln -s /etc/gridsite/.gacl /var/lib/gridsite/.gacl
    fi
    if [ ! -r /var/lib/gridsite/gridsitefoot.txt -a \
	-r /etc/gridsite/gridsitefoot.txt ] ; then
	ln -s /etc/gridsite/gridsitefoot.txt /var/lib/gridsite/gridsitefoot.txt
    fi
    if [ ! -r /var/lib/gridsite/gridsitehead.txt -a \
	-r /etc/gridsite/gridsitehead.txt ] ; then
	ln -s /etc/gridsite/gridsitehead.txt /var/lib/gridsite/gridsitehead.txt
    fi
fi