#!/bin/sh

if ! id | grep -q '(cuckoo)' && ! [ $EUID -eq 0 ] ; then
  echo "ERROR: Add yourself to the cuckoo group to use cuckoo as an unprivledged user."
  exit 1
fi

cd /opt/cuckoo
exec python2 cuckoo/main.py "$@"
