This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reprganized docker file, less layers, new shortcuts for management co…
…mmands
- Loading branch information
jonaswinkler
committed
Feb 12, 2021
1 parent
5b56fad
commit d6c3471
Showing
3 changed files
with
50 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
for command in document_archiver document_exporter document_importer mail_fetcher document_create_classifier document_index document_renamer document_retagger document_thumbnails; | ||
do | ||
echo "installing $command..." | ||
sed "s/management_command/$command/g" management_script.sh > /usr/local/bin/$command | ||
chmod +x /usr/local/bin/$command | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
cd /usr/src/paperless/src/ | ||
|
||
if [[ $(id -u) == 0 ]] ; | ||
then | ||
sudo -HEu paperless python3 manage.py management_command "$@" | ||
elif [[ $(id -un) == "paperless" ]] ; | ||
then | ||
python3 manage.py management_command "$@" | ||
else | ||
echo "Unknown user." | ||
fi |