Sha256: ec97b519852830b322eefef799bd8eb834ea3cef6efd9c53f39b2fe00ed5f3bf

Contents?: true

Size: 477 Bytes

Versions: 2

Compression:

Stored size: 477 Bytes

Contents

#!/bin/sh

set -e

pkgfile=$1
operation=$2

requestfile=/var/etch/requests/etc/sudoers/$pkgfile

case "$operation" in
'install')
	mkdir -p `dirname "$requestfile"`
	tmpfile=`mktemp "$requestfile.XXXXXX"` || exit 1
	echo "<request>" > $tmpfile
	# Dump in the data passed to us on stdin
	cat >> $tmpfile
	echo "</request>" >> $tmpfile
	chmod 644 "$tmpfile"
	;;
'remove')
	rm -f "$requestfile".*
	;;
*)
	echo "$0: Invalid arguments"
	exit 1
	;;
esac

/usr/sbin/etch /etc/sudoers

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tpkg-2.3.5 externals-etch/sudo
tpkg-2.3.4 externals-etch/sudo