Skip to content

Commit 5f4aaa9

Browse files
authored
Merge pull request #430 from jmpsec/change-default-code
Change default path for code in provision
2 parents d184988 + 8932f98 commit 5f4aaa9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

deploy/provision.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# -c PATH --certfile PATH Path to supplied TLS server PEM certificate(s) bundle
4242
# -d DOMAIN --domain DOMAIN Domain for the TLS certificate to be generated using letsencrypt
4343
# -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
4545
# -S PATH --dest PATH Path to binaries. Default is /opt/osctrl
4646
# -n --nginx Install and configure nginx as TLS termination
4747
# -P --postgres Install and configure PostgreSQL as backend
@@ -51,8 +51,8 @@
5151
# -U --upgrade Keep osctrl upgraded with the latest code from Github
5252
#
5353
# 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
5656
# Provision service in production mode using my own certificate and only with TLS endpoint:
5757
# provision.sh -m prod -t own -k /etc/certs/my.key -c /etc/certs/cert.crt -p tls
5858
# Upgrade service with the latest code from Github. Does not create services nor certificates:
@@ -112,7 +112,7 @@ function usage() {
112112
printf " -c PATH --certfile PATH \tPath to supplied TLS server PEM certificate(s) bundle\n"
113113
printf " -d DOMAIN --domain DOMAIN \tDomain for the TLS certificate to be generated using letsencrypt\n"
114114
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"
116116
printf " -S PATH --dest PATH \tPath to binaries. Default is /opt/osctrl\n"
117117
printf " -n --nginx \t\tInstall and configure nginx as TLS termination\n"
118118
printf " -P --postgres \tInstall and configure PostgreSQL as backend\n"
@@ -121,8 +121,8 @@ function usage() {
121121
printf " -N NAME --env NAME \tInitial environment name to be created. Default is the mode (dev or prod)\n"
122122
printf " -U --upgrade \tKeep osctrl upgraded with the latest code from Github\n"
123123
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}"
126126
printf " Provision service in production mode using my own certificate and only with TLS endpoint:\n"
127127
printf "\t%s -m prod -t own -k /etc/certs/my.key -c /etc/certs/cert.crt -p tls\n" "${0}"
128128
printf " Upgrade service with the latest code from Github. Does not create services nor certificates:\n"
@@ -169,7 +169,7 @@ POSTGRES=false
169169
REDIS=false
170170
UPGRADE=false
171171
BRANCH="main"
172-
SOURCE_PATH=/vagrant
172+
SOURCE_PATH=~/osctrl
173173
DEST_PATH=/opt/osctrl
174174
ALL_HOST="127.0.0.1"
175175
OSQUERY_VERSION="5.11.0"

0 commit comments

Comments
 (0)