Subversion Repositories se3

Compare Revisions

Ignore whitespace Rev 6607 → Rev 6608

/branches/2.1/se3-synchro/DEBIAN/postinst
50,9 → 50,9
#etch
sshd="ssh"
fi
sed "s/sshd/sshd_ext/g" /etc/init.d/$sshd > /etc/init.d/${sshd}_ext
sed "s|sshd|sshd_ext|g;s|/etc/default/ssh|/etc/default/ssh_ext|g" /etc/init.d/$sshd > /etc/init.d/${sshd}_ext
chmod 755 /etc/init.d/${sshd}_ext
sed "s/^SSHD_OPTS=/SSHD_OPTS=\"-f \/etc\/ssh\/sshd_ext_config\"/g" /etc/default/$sshd > /etc/default/${sshd}_ext
sed "s|^SSHD_OPTS=|SSHD_OPTS=\"-f /etc/ssh/sshd_ext_config\"|g" /etc/default/ssh > /etc/default/ssh_ext
chmod 755 /etc/init.d/${sshd}_ext
sed "s/^Port 22$/Port 22222/g;s/^PermitRootLogin yes/PermitRootLogin no/g;s/^UsePAM yes/UsePAM no/g" /etc/ssh/sshd_config > /etc/ssh/sshd_ext_config
update-rc.d ${sshd}_ext defaults