aboutsummaryrefslogtreecommitdiff
path: root/install-dependencies.sh
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-01-18 12:41:01 -0500
committerBradley Taunt <bt@btxx.org>2024-01-18 12:41:01 -0500
commitcce6b3dec92b87df030059963db32a3d9ffae82b (patch)
tree5e40fddeae54b4abd54f579b0cb707f4c123b940 /install-dependencies.sh
Initial commit for the cgit platform
Diffstat (limited to 'install-dependencies.sh')
-rwxr-xr-xinstall-dependencies.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/install-dependencies.sh b/install-dependencies.sh
new file mode 100755
index 0000000..cb2a429
--- /dev/null
+++ b/install-dependencies.sh
@@ -0,0 +1,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