главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorP.J. Finlay <pjappdevelopment@gmail.com>2021-07-17 14:54:46 +0000
committerP.J. Finlay <pjappdevelopment@gmail.com>2021-07-17 14:54:46 +0000
commit4bc90c977827cf99457cbf3ab2af3a9440d698eb (patch)
tree5dbb40dfc6c97164e4caccc7b8dbda15c8d6315d
parente33663586aef49bacdf64579ad409c33922993f3 (diff)
More improvements
-rw-r--r--README.md20
-rwxr-xr-xsetup.sh3
2 files changed, 22 insertions, 1 deletions
diff --git a/README.md b/README.md
index 87219ec..d4d5e5d 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,22 @@
# LibreTranslate-init
Run LibreTranslate on Ubuntu 20.04.
-Uses [LibreTranslate WSGI](https://community.libretranslate.com/t/is-wsgi-currently-supported/24/3)with [Gunicorn and Nginx](https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04).
+Uses [LibreTranslate WSGI] (https://community.libretranslate.com/t/is-wsgi-currently-supported/24/3)with [Gunicorn and Nginx](https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04).
+
+```
+# Add argosopentech user
+useradd argosopentech
+mkdir /home/argosopentech
+chown argosopentech:argosopentech /home/argosopentech
+cp -r ~/.ssh /home/argosopentech/.ssh
+chown -R argosopentech:argosopentech /home/argosopentech/.ssh
+passwd -d argosopentech
+chsh -s /bin/bash argosopentech
+usermod -aG sudo argosopentech
+su argosopentech
+
+# Download and run LibreTranslate-init
+git clone https://github.com/argosopentech/LibreTranslate-init.git ~/LibreTranslate-init
+~/LibreTranslate-init/setup.sh
+
+```
diff --git a/setup.sh b/setup.sh
index 95087ee..0f0c4a8 100755
--- a/setup.sh
+++ b/setup.sh
@@ -18,7 +18,10 @@ git clone https://github.com/argosopentech/LibreTranslate.git ~/LibreTranslate
# Setup virtualenv
virtualenv ~/LibreTranslate/env
source ~/LibreTranslate/env/bin/activate
+
+# Install LibreTranslate
pip install -e ~/LibreTranslate/
+libretranslate
# Install gunicorn
pip install gunicorn