aboutsummaryrefslogtreecommitdiff
path: root/install-dependencies.sh
blob: cb2a4298baf61adf6b47d95cd62299d2aaa7d847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

if [ "$EUID" -ne 0 ]
  then echo "The script has to be run as root."
  exit
fi

echo "This script is designed for Alpine Linux and it will not work with in any other OS"
echo "Installing dependencies listed in dependencies.txt..."

sed -e 's/#.*$//' -e '/^$/d' dependencies.txt | while read p; do
    echo "Running apk add $p"
    apk add $p
done