aboutsummaryrefslogtreecommitdiff
path: root/bin/provision-dict
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-06 08:17:18 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-06-06 08:17:18 -0300
commit515bdd658d91020c73f82b70ff001015b359adc0 (patch)
treee7c62578e2ef61bf7c9a46de91d92d37620553fe /bin/provision-dict
downloadbookup-515bdd658d91020c73f82b70ff001015b359adc0.tar.gz
bookup-515bdd658d91020c73f82b70ff001015b359adc0.tar.bz2
Initial import
Diffstat (limited to 'bin/provision-dict')
-rwxr-xr-xbin/provision-dict13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/provision-dict b/bin/provision-dict
new file mode 100755
index 0000000..a75ae71
--- /dev/null
+++ b/bin/provision-dict
@@ -0,0 +1,13 @@
+#!/bin/bash
+#
+# Provisioner for dictionaries
+#
+
+# Check for sudo
+if [ "`whoami`" != "root" ]; then
+ SUDO="sudo"
+fi
+
+# Dictionaries
+$SUDO apt install -y dict dict-gcide dict-freedict-eng-por \
+ dict-freedict-eng-ell dict-freedict-eng-lat