2022-03-20 15:58:37 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2022-04-18 08:18:20 -07:00
|
|
|
set -eu
|
|
|
|
|
|
2022-06-11 13:04:21 -07:00
|
|
|
for command in decrypt_documents \
|
2022-06-10 08:56:25 -07:00
|
|
|
document_archiver \
|
|
|
|
|
document_exporter \
|
|
|
|
|
document_importer \
|
|
|
|
|
mail_fetcher \
|
|
|
|
|
document_create_classifier \
|
|
|
|
|
document_index \
|
|
|
|
|
document_renamer \
|
|
|
|
|
document_retagger \
|
|
|
|
|
document_thumbnails \
|
|
|
|
|
document_sanity_checker \
|
2023-09-10 16:32:10 -07:00
|
|
|
document_fuzzy_match \
|
2022-06-10 08:56:25 -07:00
|
|
|
manage_superuser;
|
2021-02-12 16:53:51 +01:00
|
|
|
do
|
|
|
|
|
echo "installing $command..."
|
|
|
|
|
sed "s/management_command/$command/g" management_script.sh > /usr/local/bin/$command
|
|
|
|
|
chmod +x /usr/local/bin/$command
|
|
|
|
|
done
|