-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathec2setup
executable file
·41 lines (27 loc) · 1.11 KB
/
ec2setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
sudo dpkg -i crowdin.deb
sudo apt-get install apache2
sudo service apache2 start
sudo apt-get install -y docker docker.io python3-venv python3-sphinx unzip zip
mkdir -p /ephemeral/crowdin
cd /ephemeral/crowdin
git clone [email protected]:holatuwol/github-crowdin-crontab.git
git clone [email protected]:holatuwol/liferay-docs.git
cd liferay-docs
git remote add upstream [email protected]:liferay/liferay-docs.git
cd -
git clone [email protected]:holatuwol/liferay-learn.git
cd liferay-learn
git remote add upstream [email protected]:liferay/liferay-learn.git
cd -
git clone [email protected]:holatuwol/zendesk-articles.git
# Need to configure (via git config --global) crowdin information
## crowdin.login
## crowdin.password
## crowdin.api-key.liferay-documentation
# Need to configure (via git config --global) zendesk information
# https://developer.zendesk.com/requests/new
## liferay-support.zendesk.com.token
# Need to manually add a job to your crontab
## 0 20 * * * /ephemeral/crowdin/github-crowdin-crontab/ec2translate | tee /home/ubuntu/translate.txt