@@ -39,14 +39,12 @@ Usage:
39
39
Choose the installation method. Defaults to detect.
40
40
- detect detects the system package manager and tries to use it.
41
41
Full reference on the process is further below.
42
- - standalone installs a standalone release archive into ~/.local
43
- Add ~/.local/bin to your \$ PATH to use it.
42
+ - standalone installs a standalone release archive into /usr/local/bin
44
43
45
44
--prefix <dir>
46
- Sets the prefix used by standalone release archives. Defaults to ~/.local
47
- The release is unarchived into ~/.local/lib/coder-X.X.X
48
- and the binary symlinked into ~/.local/bin/coder
49
- To install system wide pass ---prefix=/usr/local
45
+ Sets the prefix used by standalone release archives. Defaults to /usr/local
46
+ and the binary is copied into /usr/local/bin
47
+ To install in \$ HOME, pass ---prefix=\$ HOME/.local
50
48
51
49
--rsh <bin>
52
50
Specifies the remote shell for remote installation. Defaults to ssh.
@@ -81,17 +79,27 @@ echo_latest_version() {
81
79
}
82
80
83
81
echo_standalone_postinstall () {
84
- echoh
85
- cath << EOF
82
+ if [ " $STANDALONE_INSTALL_PREFIX " = /usr/local ]; then
83
+ cath << EOF
84
+
85
+ Standalone release has been installed into /usr/local/bin/coder
86
+
87
+ EOF
88
+ else
89
+ cath << EOF
86
90
Standalone release has been installed into $STANDALONE_INSTALL_PREFIX /bin/coder
87
91
88
92
Extend your path to use Coder:
89
- PATH="$STANDALONE_INSTALL_PREFIX /bin:\$ PATH"
93
+ PATH="$STANDALONE_INSTALL_PREFIX /bin:\$ PATH"
90
94
91
- Then run Coder (temporary):
95
+ EOF
96
+ fi
97
+ cath << EOF
98
+ Run Coder (temporary):
92
99
coder server --dev
100
+
93
101
Or run a production deployment with PostgreSQL:
94
- CODER_PG_CONNECTION_URL="postgres://<username>@<host>/<database>?password=<password>" \
102
+ CODER_PG_CONNECTION_URL="postgres://<username>@<host>/<database>?password=<password>" \\
95
103
coder server
96
104
97
105
EOF
@@ -216,7 +224,7 @@ main() {
216
224
# These are used by the various install_* functions that make use of GitHub
217
225
# releases in order to download and unpack the right release.
218
226
CACHE_DIR=$( echo_cache_dir)
219
- STANDALONE_INSTALL_PREFIX=${STANDALONE_INSTALL_PREFIX:- $HOME / . local}
227
+ STANDALONE_INSTALL_PREFIX=${STANDALONE_INSTALL_PREFIX:-/ usr / local}
220
228
VERSION=${VERSION:- $(echo_latest_version)}
221
229
# These can be overridden for testing but shouldn't normally be used as it can
222
230
# result in a broken coder.
0 commit comments