eris/install-dependencies

23 lines
683 B
Text
Raw Normal View History

2015-12-26 20:52:39 +00:00
#!/bin/bash
set -e
DIST_ID=$(cat /etc/os-release | grep "^ID=" | cut -d "=" -f 2)
if [ $DIST_ID == "fedora" ]; then
INSTALL_CMD="dnf -y install"
INOTIFY_NAME="python3-inotify python3-pygments python3-docopt python3-pillow"
elif [ $DIST_ID == "arch" ]; then
INSTALL_CMD="pacman -S --noconfirm"
INOTIFY_NAME="python-pyinotify python-pygments python-docopt python-pillow"
else
INSTALL_CMD="apt --yes install"
INOTIFY_NAME="python3-pyinotify python3-pygments python3-docopt python3-pillow"
fi
2015-12-26 20:52:39 +00:00
echo "Install the dependencies of the vigil script..."
sudo $INSTALL_CMD $INOTIFY_NAME util-linux
2015-12-26 20:52:39 +00:00
echo
echo "Install all the tools vigil may need..."
./install-tools