1. server

curl -s http://d01cid.ddns.net/sharel/bin/inst-httpd | sh
yum -y install subversion asciidoc
mkdir -p /var/svn
svnadmin create /var/svn/adoc
rsync -ai /usr/share/asciidoc/images/icons/*.png /opt/adoc/pic/
cube /var/svn/adoc/conf/svnserve.conf '# password-db = passwd' with 'password-db = passwd'
echo "cidusr = P@ssw0rd" >> /var/svn/adoc/conf/passwd
systemctl enable svnserve.service
systemctl start svnserve.service
svn checkout svn://localhost/adoc /opt/adoc
svn update /opt/adoc/
echo '#!/bin/sh' > /var/svn/adoc/hooks/post-commit
echo 'logfile="/var/log/cid-post-commit.log"' >> /var/svn/adoc/hooks/post-commit
echo '/bin/cid-post-commit | tee -a ${logfile}' >> /var/svn/adoc/hooks/post-commit
wget -N -nv http://d01cid.ddns.net/sharel/bin/cid-post-commit -P /bin/
chmod +x /bin/cid-post-commit /var/svn/adoc/hooks/post-commit
wget -N -nv http://d01cid.ddns.net/sharel/etc/httpd/conf.d/adoc.conf -P /etc/httpd/conf.d/
cube /etc/httpd/conf.d/adoc.conf "%dnsdomainname%" with "$(dnsdomainname)"
systemctl reload httpd.service

2. client

yum -y install subversion
svn checkout svn://d01cid.ddns.net/adoc ~/adoc/
svn mkdir ~/adoc/dummy
echo "= $RANDOM" > ~/adoc/dummy/howto.adoc
svn add ~/adoc/dummy/howto.adoc
svn commit ~/adoc/ -m ary --username "cidusr" --password "P@ssw0rd"
svn delete ~/adoc/dummy/
svn commit ~/adoc/ -m ary --username "cidusr" --password "P@ssw0rd"