File: postinst

package info (click to toggle)
calife 2.8.4-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 400 kB
  • ctags: 72
  • sloc: sh: 1,656; perl: 1,330; ansic: 992; makefile: 65
file content (22 lines) | stat: -rw-r--r-- 420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

if [ ! -f /etc/calife.auth ]
then
  echo 'Creating default /etc/calife.auth'
  cat <<EOF > /etc/calife.auth
### /etc/calife.auth for Debian GNU/Linux
## calife.auth-dist
##
## Format
##
## name[:shell_to_be_run][:user1,user2,...,usern]
##
## $Id: //depot/security/calife/main/calife.auth-dist#3 $
#fcb
#roberto:/bin/tcsh
#pb::guest,blaireau
EOF
fi

chown root.root /etc/calife.auth
chmod 600 /etc/calife.auth