#!/bin/sh

set -eu

NAME="websocket-gateway"

USER="$NAME"
GROUP="$NAME"

# copy upstart file
cp /var/lib/$NAME/script/package/$NAME.conf /etc/init/$NAME.conf

mkdir -p /var/lib/$NAME/log

chown -R $USER:$GROUP /var/lib/$NAME
