41
41
# -c PATH --certfile PATH Path to supplied TLS server PEM certificate(s) bundle
42
42
# -d DOMAIN --domain DOMAIN Domain for the TLS certificate to be generated using letsencrypt
43
43
# -e EMAIL --email EMAIL Domain for the TLS certificate to be generated using letsencrypt
44
- # -s PATH --source PATH Path to code. Default is /vagrant
44
+ # -s PATH --source PATH Path to code. Default is ~/osctrl
45
45
# -S PATH --dest PATH Path to binaries. Default is /opt/osctrl
46
46
# -n --nginx Install and configure nginx as TLS termination
47
47
# -P --postgres Install and configure PostgreSQL as backend
51
51
# -U --upgrade Keep osctrl upgraded with the latest code from Github
52
52
#
53
53
# Examples:
54
- # Provision service in development mode, code is in /vagrant and all components (admin, tls, api):
55
- # provision.sh -m dev -s /vagrant -p all
54
+ # Provision service in development mode, code is in /code/osctrl and all components (admin, tls, api):
55
+ # provision.sh -m dev -s /code/osctrl -p all
56
56
# Provision service in production mode using my own certificate and only with TLS endpoint:
57
57
# provision.sh -m prod -t own -k /etc/certs/my.key -c /etc/certs/cert.crt -p tls
58
58
# Upgrade service with the latest code from Github. Does not create services nor certificates:
@@ -112,7 +112,7 @@ function usage() {
112
112
printf " -c PATH --certfile PATH \tPath to supplied TLS server PEM certificate(s) bundle\n"
113
113
printf " -d DOMAIN --domain DOMAIN \tDomain for the TLS certificate to be generated using letsencrypt\n"
114
114
printf " -e EMAIL --email EMAIL \tDomain for the TLS certificate to be generated using letsencrypt\n"
115
- printf " -s PATH --source PATH \tPath to code. Default is /vagrant \n"
115
+ printf " -s PATH --source PATH \tPath to code. Default is ~/osctrl \n"
116
116
printf " -S PATH --dest PATH \tPath to binaries. Default is /opt/osctrl\n"
117
117
printf " -n --nginx \t\tInstall and configure nginx as TLS termination\n"
118
118
printf " -P --postgres \tInstall and configure PostgreSQL as backend\n"
@@ -121,8 +121,8 @@ function usage() {
121
121
printf " -N NAME --env NAME \tInitial environment name to be created. Default is the mode (dev or prod)\n"
122
122
printf " -U --upgrade \tKeep osctrl upgraded with the latest code from Github\n"
123
123
printf " \nExamples:\n"
124
- printf " Provision service in development mode, code is in /vagrant and all components (admin, tls, api):\n"
125
- printf " \t%s -m dev -s /vagrant -p all\n" " ${0} "
124
+ printf " Provision service in development mode, code is in /code/osctrl and all components (admin, tls, api):\n"
125
+ printf " \t%s -m dev -s /code/osctrl -p all\n" " ${0} "
126
126
printf " Provision service in production mode using my own certificate and only with TLS endpoint:\n"
127
127
printf " \t%s -m prod -t own -k /etc/certs/my.key -c /etc/certs/cert.crt -p tls\n" " ${0} "
128
128
printf " Upgrade service with the latest code from Github. Does not create services nor certificates:\n"
@@ -169,7 +169,7 @@ POSTGRES=false
169
169
REDIS=false
170
170
UPGRADE=false
171
171
BRANCH=" main"
172
- SOURCE_PATH=/vagrant
172
+ SOURCE_PATH=~ /osctrl
173
173
DEST_PATH=/opt/osctrl
174
174
ALL_HOST=" 127.0.0.1"
175
175
OSQUERY_VERSION=" 5.11.0"
0 commit comments