#!/bin/bash
BASE="https://raw.githubusercontent.com/bjc/prosody-modules/master"
mkdir -p /usr/lib/prosody/modules/mod_smacks
mkdir -p /usr/lib/prosody/modules/mod_push
mkdir -p /usr/lib/prosody/modules/mod_cloud_notify

curl -sL "https://raw.githubusercontent.com/legastero/mod_smacks/master/mod_smacks.lua" \
  -o /usr/lib/prosody/modules/mod_smacks.lua
curl -sL "https://raw.githubusercontent.com/bjc/prosody-modules/master/mod_push/mod_push.lua" \
  -o /usr/lib/prosody/modules/mod_push.lua
curl -sL "https://raw.githubusercontent.com/bjc/prosody-modules/master/mod_cloud_notify/mod_cloud_notify.lua" \
  -o /usr/lib/prosody/modules/mod_cloud_notify.lua

exec /entrypoint.sh prosody
