blob: b8ff60652eea9cb69bf77da70a09cabed9ac7176 [file] [log] [blame]
#!/bin/bash
DIST_DIR=$1
PACKAGES=$(ls $DIST_DIR/*.deb)
if [ -z "$PACKAGES" ]
then
echo "No packages found to be installed. Aborting."
exit 1
fi
sudo dpkg -i $PACKAGES
sudo systemctl stop aurora-scheduler
sudo systemctl stop thermos
sudo -u aurora mkdir -p /var/lib/aurora/scheduler/db
sudo -u aurora mesos-log initialize --path=/var/lib/aurora/scheduler/db || true
sudo systemctl start aurora-scheduler
sudo systemctl start thermos