главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
authorP.J. Finlay <pjappdevelopment@gmail.com>2021-07-13 00:21:25 +0000
committerP.J. Finlay <pjappdevelopment@gmail.com>2021-07-13 00:21:25 +0000
commit9379e37266b4783577a72bab7aca6a9655b04405 (patch)
tree82e3ebb8347c6d99657212aa2bdf461a03cf365f /setup.sh
parent1e4a00679d8bcb2acf4e88090404faada0431141 (diff)
Nginx and systemd setup
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh
index 8e45ac5..f53d4b3 100755
--- a/setup.sh
+++ b/setup.sh
@@ -7,3 +7,15 @@ sudo apt-get install -y libicu-dev python3-icu pkg-config
# Install Nginx
sudo apt-get install -y nginx
+
+# Setup systemd
+sudo cp libretranslate.service /etc/systemd/system/
+sudo systemctl start libretranslate
+sudo systemctl enable libretranslate
+sudo systemctl status libretranslate
+
+# Configure Nginx
+sudo cp nginx /etc/nginx/sites-available/default
+sudo nginx -t
+sudo systemctl restart nginx
+