The procedure is:
To get the expect shell working ... I needed:
comment = dpicella shell addons
paths = /usr/lib/tcl8.4
libraries = /usr/lib/libexpect5.43.so, /lib64/libgcc_s.so.1
executables = /usr/bin/expect
includesections = netbasics, uidbasics
Then ... add custom or modified sections (in this case "svn" and "dshell") to your list of chroot app sections in ispconfig 3 at: system -> server config -> jailkit
It only seems to work when installing a new website. I don't seem to get all the updates to my chrooted jail applications when changing or modifying users.
Both SVN and the expect shell seem to be working ... However, if I log in as a jailed user and try to spawn an sftp session using the expect shell, I get this error:
The system has no more ptys. Ask your system administrator to create more.