File: calife.postinst

package info (click to toggle)
calife 1%3A3.0.1-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 560 kB
  • sloc: sh: 2,915; ansic: 1,220; makefile: 71
file content (26 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

set -e
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 /usr/bin/calife
chmod 600 /etc/calife.auth
chmod u+s /usr/bin/calife

#DEBHELPER#