Add slack + a function that installs js appserivces

This commit is contained in:
Vladan Popovic 2019-02-08 03:29:47 +01:00
parent 9846867740
commit a0c23cc030

View file

@ -17,11 +17,18 @@ 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 pip3 install mautrix-telegram
IRC_DIR=/usr/lib/matrix-appservice-irc/ install_appservice() {
mkdir ${IRC_DIR} PKG=$1
cd ${IRC_DIR} LIBDIR=/usr/lib/${PKG}
yarn add matrix-appservice-irc
ln -s ${IRC_DIR}/node_modules/matrix-appservice-irc/bin/matrix-appservice-irc /usr/local/bin/matrix-appservice-irc mkdir -p ${LIBDIR}
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