Install only irc appservice

This commit is contained in:
Vladan Popovic 2019-02-28 17:52:10 +01:00
parent 2136f3e999
commit ba082370f9

View file

@ -15,20 +15,12 @@ apk --no-cache add --virtual .synapse-build \
pip3 install --upgrade pip setuptools pip3 install --upgrade pip setuptools
pip3 install https://github.com/matrix-org/synapse/tarball/master pip3 install https://github.com/matrix-org/synapse/tarball/master
pip3 install mautrix-telegram
install_appservice() { IRC_DIR=/usr/lib/matrix-appservice-irc/
PKG=$1 mkdir ${IRC_DIR}
LIBDIR=/usr/lib/${PKG} cd ${IRC_DIR}
yarn add matrix-appservice-irc
mkdir -p ${LIBDIR} ln -s ${IRC_DIR}/node_modules/matrix-appservice-irc/bin/matrix-appservice-irc /usr/local/bin/matrix-appservice-irc
cd ${LIBDIR}
yarn add ${PKG}
ln -s ${IRC_DIR}/node_modules/${PKG}/bin/${PKG} /usr/local/bin/${PKG}
}
install_appservice matrix-appservice-irc
install_appservice matrix-appservice-slack
apk del .synapse-build apk del .synapse-build