Package openssh-server: Скрипты

Post install

if [ $1 -ge 2 ]; then 
	/usr/sbin/control-restore sftp 
else 
	for facility in sftp; do 
		/usr/sbin/control "$facility" enabled 
	done 
fi 


if [ $1 -ge 2 ]; then 
	/usr/sbin/control-restore sshd-allow-groups 
else 
	for facility in sshd-allow-groups; do 
		/usr/sbin/control "$facility" disabled 
	done 
fi 


if [ $1 -ge 2 ]; then 
	/usr/sbin/control-restore sshd-password-auth 
else 
	for facility in sshd-password-auth; do 
		/usr/sbin/control "$facility" default 
	done 
fi 

if [ $1 -ge 2 ]; then
	/sbin/service sshd condreload ||:
else
	/sbin/chkconfig --add sshd ||:
fi
Pre install

1
2
3
4
5
6
/usr/sbin/groupadd -r -f sshd
/usr/sbin/useradd -r -g sshd -d /var/empty -s /dev/null -n sshd >/dev/null 2>&1 ||:

if [ $1 -ge 2 ]; then 
	/usr/sbin/control-dump sftp sshd-allow-groups sshd-password-auth 
fi
Pre uninstall

1
2
3
if [ $1 = 0 ]; then
	/sbin/chkconfig --del sshd ||:
fi