diff --git a/Dockerfile b/Dockerfile index a6d0c20..0399ad2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,6 +43,7 @@ RUN apt-get update \ && rm -rf /opt/sbbs/3rdp /opt/sbbs/src \ && mv /opt/sbbs/ctrl /opt/sbbs/ctrl.orig \ && mv /opt/sbbs/text /opt/sbbs/text.orig \ + && mv /opt/sbbs/xtrn /opt/sbbs/xtrn.orig \ && mkdir /opt/sbbs/nodes.orig && mv /opt/sbbs/node[1-5] /opt/sbbs/nodes.orig \ && find /opt/sbbs -name CVS -type d -exec rm -rf {} + \ && SUDO_FORCE_REMOVE=yes apt-get -y purge git build-essential libnspr4-dev libncurses5-dev libncursesw5-dev cvs wget pkgconf libcap2-bin sudo \ diff --git a/init b/init index 3f5626f..689652c 100755 --- a/init +++ b/init @@ -21,6 +21,12 @@ if [ ! -e "${SBBSCTRL}/../text/answer.msg" ]; then cp -Ras ${SBBSCTRL}/../text.orig/* ${SBBSCTRL}/../text/ fi +if [ ! -d "${SBBSCTRL}/../xtrn" -o $((ls -1 ${SBBSCTRL}/../xtrn 2>/dev/null|wc -l)||echo 0) -eq 0 ]; then + echo "* Installing SBBS xtrn files into ${SBBSCTRL}/../xtrn" + [ ! -d ${SBBSCTRL}/../xtrn ] && mkdir ${SBBSCTRL}/../xtrn + cp -Ras ${SBBSCTRL}/../xtrn.orig/* ${SBBSCTRL}/../xtrn +fi + if [ -r ${SBBSCTRL}/doorparty-connector.users ]; then ${SBBSCTRL}/../exec/doorparty.sh fi