-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaravel-app-permissions.txt
76 lines (43 loc) · 1.74 KB
/
laravel-app-permissions.txt
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
sudo adduser product_sys
sudo passwd product_sys
WelComE.01!
sudo usermod -g apache product_sys
groups product_sys
#web
sudo chown -R product_sys:apache /vol/data/company.product
sudo find /vol/data/company.product -type d -exec chmod 575 {} +
sudo find /vol/data/company.product -type f -exec chmod 464 {} +
sudo chmod -R 575 /vol/data/company.product/wkhtmltox/bin/wkhtmltopdf
sudo chmod -R 770 /vol/data/company.product/app/storage
sudo chmod -R 770 /vol/data/company.product/public/product.api/storage
#service
sudo chown -R product_sys:apache /vol/data/company.product.service
sudo find /vol/data/company.product.service -type d -exec chmod 575 {} +
sudo find /vol/data/company.product.service -type f -exec chmod 464 {} +
sudo chmod -R 575 /vol/data/company.product.service/wkhtmltox/bin/wkhtmltopdf
touch /vol/data/cron_job_company
sudo chmod -R 770 /vol/data/company.product.service/storage
sudo chown -R product_sys:apache /vol/data/cron_job_company
#Tmp
sudo chown -R product_sys:apache /vol/data/tmp
sudo find /vol/data/tmp -type d -exec chmod 775 {} +
sudo find /vol/data/tmp -type f -exec chmod 775 {} +
#app - nodejs
sudo chown -R product_sys:apache /vol/data/product_nodejs_api
sudo find /vol/data/product_nodejs_api -type d -exec chmod 770 {} +
sudo find /vol/data/product_nodejs_api -type f -exec chmod 464 {} +
#app setup
su product_sys
cd /vol/data/product_nodejs_api/
pm2 app start
pm2 start app.js
#git
sudo chmod -R 770 /vol/data/company.product.service/.git
sudo chmod -R 770 /vol/data/company.product/.git
#Mysql
sudo find /vol/data/mysql/ -type d -exec chmod 700 {} +
sudo find /vol/data/mysql/ -type f -exec chmod 600 {} +
#Crontab
sudo chown -R product_sys:apache /vol/data/cron_job_company
su product_sys
crontab -e