#!/usr/bin/env bash

# Grant ssh key the correct permission
cp /ssh-key/ssh-privatekey ~/.ssh/id_rsa
chown -R root:root ~/.ssh
chmod 600 ~/.ssh/id_rsa

# Clone driving repo
cd /code
git_ref=master
repo_owner=zooxco
./clone_driving.sh

cd /app
if [[ -z "$@" ]]; then
  exec python -c "from merge_conflict_check_daemon import main; main.run_daemon()"
else
  exec $@
fi


