2015-12-26 20:52:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2017-06-01 01:03:39 +01:00
|
|
|
# Copyright (C) 2017 Andrew Hamilton. All rights reserved.
|
|
|
|
|
# Licensed under the Artistic License 2.0.
|
|
|
|
|
|
2015-12-26 20:52:39 +00:00
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
|
2017-05-17 16:46:54 +01:00
|
|
|
DIST_ID=$(cat /etc/os-release | grep "^ID=" | cut -d "=" -f 2)
|
2017-09-01 22:07:22 +01:00
|
|
|
if [ $DIST_ID != "ubuntu" ]; then
|
|
|
|
|
echo "Vigil can only be installed on Ubuntu."
|
|
|
|
|
exit 1
|
2017-05-17 16:46:54 +01:00
|
|
|
fi
|
2017-05-31 19:41:56 +01:00
|
|
|
echo "Installing the dependencies of the vigil script..."
|
2017-09-01 22:07:22 +01:00
|
|
|
sudo apt --yes install python3-pyinotify python3-pygments python3-docopt \
|
|
|
|
|
python3-pillow util-linux
|
2015-12-26 20:52:39 +00:00
|
|
|
echo
|
2017-05-31 19:41:56 +01:00
|
|
|
echo "Installing all the tools vigil may need..."
|
2015-12-26 20:52:39 +00:00
|
|
|
./install-tools
|