Add slack + a function that installs js appserivces
This commit is contained in:
parent
9846867740
commit
a0c23cc030
1 changed files with 12 additions and 5 deletions
|
@ -17,11 +17,18 @@ pip3 install --upgrade pip setuptools
|
|||
pip3 install https://github.com/matrix-org/synapse/tarball/master
|
||||
pip3 install mautrix-telegram
|
||||
|
||||
IRC_DIR=/usr/lib/matrix-appservice-irc/
|
||||
mkdir ${IRC_DIR}
|
||||
cd ${IRC_DIR}
|
||||
yarn add matrix-appservice-irc
|
||||
ln -s ${IRC_DIR}/node_modules/matrix-appservice-irc/bin/matrix-appservice-irc /usr/local/bin/matrix-appservice-irc
|
||||
install_appservice() {
|
||||
PKG=$1
|
||||
LIBDIR=/usr/lib/${PKG}
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue