#!/bin/sh

if [ "$#" -ne 1 ]; then
  echo "scsd_auth <username>"
  exit 1
fi

if [ "$(id -u)" -eq 0 ]; then
  exec su user -c "scsd_auth ${1}"
fi

/bin/sh /opt/run.sh -a ${1}
