diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-09-29 16:07:41 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-09-29 16:13:11 +0200 |
commit | b5ec9730c022a6686955a4648329868cfdd598af (patch) | |
tree | f20e7c8629a0d339076c0ef2ca162391c196b8f2 /testing/csync2/csync2.post-install | |
parent | fa6505dc69a2a6945324744d8134de0b186be808 (diff) | |
download | aports-b5ec9730c022a6686955a4648329868cfdd598af.tar.bz2 aports-b5ec9730c022a6686955a4648329868cfdd598af.tar.xz |
testing/csync2: remove post-install file and add a few minor fixes
Diffstat (limited to 'testing/csync2/csync2.post-install')
-rw-r--r-- | testing/csync2/csync2.post-install | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/testing/csync2/csync2.post-install b/testing/csync2/csync2.post-install deleted file mode 100644 index 3c2ecc1ecf..0000000000 --- a/testing/csync2/csync2.post-install +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -SSL="/etc/csync2/csync2_ssl_" -SERV="/etc/services" -INETD="/etc/inetd.conf" - -if [ ! -f ${SSL}key.pem -o ! -f ${SSL}cert.pem ]; then - openssl genrsa -out ${SSL}key.pem 1024 &> /dev/null - yes '' | openssl req -new -key ${SSL}key.pem -out ${SSL}cert.csr &> /dev/null - openssl x509 -req -days 3600 -in ${SSL}cert.csr -out ${SSL}cert.pem -signkey ${SSL}key.pem &> /dev/null - rm ${SSL}cert.csr -fi - -if [ ! -f ${SERV} ]; then - touch ${SERV} -fi -grep -q csync2 ${SERV} || echo -e "csync2\t\t30865/tcp" >> ${SERV} - -if [ ! -f ${INETD} ]; then - touch ${INETD} -fi -grep -q csync2 ${INETD} || echo "csync2 stream tcp nowait root /usr/sbin/csync2 csync2 -i" >> ${INETD} - -exit 0 |