Skip to content

Commit 275d353

Browse files
committed
🏃run: Use quotes around class path in scripts
While most systems will not need the class path passed to the JVM with the `-cp` parameter to be in quotes, apparently some exist where that will not work without the quotes, e.g. FreeBSD. So always use quotes for the class path in all scripts. Issue #1333
1 parent 6804cde commit 275d353

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/main/distrib/linux/authority.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
java -cp gitblit.jar:ext/* com.gitblit.authority.GitblitAuthority --baseFolder data
2+
java -cp "gitblit.jar:ext/*" com.gitblit.authority.GitblitAuthority --baseFolder data

src/main/distrib/linux/migrate-tickets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ if [ -z $1 ] || [ -z $2 ]; then
1717
exit 1;
1818
fi
1919

20-
java -cp gitblit.jar:./ext/* com.gitblit.MigrateTickets $1 --baseFolder $2
20+
java -cp "gitblit.jar:ext/*" com.gitblit.MigrateTickets $1 --baseFolder $2
2121

src/main/distrib/linux/reindex-tickets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ if [ -z $1 ] ; then
2020
exit 1;
2121
fi
2222

23-
java -cp gitblit.jar:./ext/* com.gitblit.ReindexTickets --baseFolder $1
23+
java -cp "gitblit.jar:ext/*" com.gitblit.ReindexTickets --baseFolder $1
2424

src/site/federation.mkd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,6 @@ Instead of using `federation.properties` you may directly specify a Gitblit inst
335335
java -cp fedclient.jar;"%CD%/ext/*" com.gitblit.FederationClient --url https://go.gitblit.com --mirror --bare --token 123456789
336336
--repositoriesFolder c:/mymirror
337337

338-
java -cp fedclient.jar:ext/* com.gitblit.FederationClient --url https://go.gitblit.com --mirror --bare --token 123456789
338+
java -cp "fedclient.jar:ext/*" com.gitblit.FederationClient --url https://go.gitblit.com --mirror --bare --token 123456789
339339
--repositoriesFolder /srv/mymirror --daemon --frequency "24 hours"
340340

src/site/setup_go.mkd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Open `data/gitblit.properties` in your favorite text editor and make sure to rev
1717
**NOTE:** You can only have **one** SSL certificate specified for a port.
1818
4. exit the authority app
1919
4. Windows: Execute `gitblit.cmd` or `java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.GitBlitServer --baseFolder data` from a command-line
20-
Linux/OSX: Execute `gitblit.sh` or `java -cp gitblit.jar;ext/* com.gitblit.GitBlitServer --baseFolder data` from a command-line
20+
Linux/OSX: Execute `gitblit.sh` or `java -cp "gitblit.jar:ext/*"" com.gitblit.GitBlitServer --baseFolder data` from a command-line
2121
5. Open your browser to <http://localhost:8080> or <https://localhost:8443> depending on your chosen configuration.
2222
6. Enter the default administrator credentials: **admin / admin** and click the *Login* button
2323
**NOTE:** Make sure to change the administrator username and/or password!!

0 commit comments

Comments
 (0)