Richard Hansen
fba4fd5314
scripts: Various shell script cleanups ( #4008 )
2020-06-01 21:02:44 +01:00
muxator
a181ea8fbe
bin: replace double backticks (``) with $()
...
This has been the recommended way of launching subshells for ages, and is easier
to type and on the eye.
For a quick reference, see:
https://unix.stackexchange.com/questions/5778/whats-the-difference-between-stuff-and-stuff#5782
2020-03-29 00:53:17 +01:00
muxator
0a86024797
startup scripts: get rid of $* and replace it with properly quoted "$@"
...
In shell scripts an unquoted $* is rarely useful, for example because it breaks
in presence of file names with spaces.
References:
- https://google.github.io/styleguide/shell.xml
Use "$@" unless you have a specific reason to use $*.
- https://unix.stackexchange.com/questions/41571/what-is-the-difference-between-and#94200
Short answer: use "$@" (note the double quotes). The other forms are very
rarely useful.
2019-12-01 01:52:32 +01:00
HairyFotr
c7548450c0
Typos and minor fixes in bin, doc, and root
2017-09-14 13:33:27 +02:00
Stefan
1349cfd486
Fix error if whitespace in etherpad path
2016-05-16 16:58:58 +02:00
Reed A. Cartwright
843b05a6ec
Use exec to switch to node process
...
At the end of run, `exec` should be used to switch to the node process. That way node will take over the pid of `sh run.sh`, making it easier to monitor and daemonize the server.
```
exec [command [arg ...]]
Unless command is omitted, the shell process is replaced with the
specified program (which must be a real program, not a shell
built-in command or function). Any redirections on the exec com-
mand are marked as permanent, so that they are not undone when
the exec command finishes.
```
2016-01-19 16:17:16 -07:00
István Király
376fccfe92
bugfix for correct bash syntax
...
$rocks has to be enclosed into a "string" so bash can treat is as a string.
We can compare two strings with the == operator then, ...
2015-06-22 16:11:29 +02:00
John McLear
0a84379364
make additional line break at end of imported doc
2014-11-26 15:19:22 +00:00
John McLear
932c9ae406
allow nix file process path to be visible in ps aux
2013-11-10 16:32:33 +00:00
Eric Schrijver
b34224559d
‘Etherpad Lite’ -> ‘Etherpad’
2013-09-29 13:57:37 +02:00
Michael Parks
f3987007b0
Back to sh, fix comparison for POSIX/dash (++ CentOS, Ubuntu compatibility)
2013-09-17 15:27:52 -06:00
Michael Parks
dc2418e532
Start script needs bash instead of sh for root arguments
2013-08-15 11:06:48 -06:00
mluto
6a27a54727
Added --root argument to run.sh to bypass the root-check, fix for #1324
2013-01-06 12:48:32 +01:00
Egil Moeller
da52353ba3
The big rename of pluginbs from pluginomatic to ep
2012-02-26 13:54:32 +01:00
Egil Moeller
758666c3e1
Better startup & symlinking
2012-02-26 13:31:47 +01:00
Egil Moeller
1239ce7f28
The Big Renaming - etherpad is now an NPM module
2012-02-26 13:07:51 +01:00
Jordan
8bac77ff80
Allow settings filename to be passed as a cli option
2012-02-21 14:20:45 -05:00
Garrett LeSage
d0addfddb3
spelling fixes in the shell scripts
2011-08-03 23:18:12 +02:00
Garrett LeSage
c984f496c2
fixed issue # 64, making the shell scripts more portable (for OS X)
2011-08-03 23:08:27 +02:00
Peter 'Pita' Martischka
051589ed47
Allow starting as root after input a silly prompt
2011-08-02 22:28:17 +01:00
Peter 'Pita' Martischka
de5c0741f7
improved the bin files
2011-07-27 14:37:12 +01:00
Peter 'Pita' Martischka
75cc53139e
Shell scripts are now POSIX compatible, thx @ Johannes Schauer
2011-07-26 19:28:49 +01:00
Peter 'Pita' Martischka
bd1ac333db
update jquery
2011-07-12 13:33:44 +01:00
Peter 'Pita' Martischka
95b47b4940
use a downloaded jQuery instead of using googles CDN, and fixed btw a bug that let pad.js fails randomly
2011-06-30 18:06:07 +01:00
Peter 'Pita' Martischka
1f0353d680
Change 'npm link' to 'npm install'. It does the same but doesn't need root permissions and it's able to check which dependencies are already installed
2011-06-23 11:34:57 +01:00
Peter 'Pita' Martischka
92b8e2ea9e
Removed npm link from run.sh
2011-06-04 18:05:47 +01:00
Peter 'Pita' Martischka
43712c4cef
run.sh is startable from any location again
2011-06-04 15:57:39 +01:00
Peter 'Pita' Martischka
4e0cf8a0c3
Fixed typo
2011-06-02 14:36:12 +01:00
Peter 'Pita' Martischka
8693f317ac
Improve run.sh in many points
2011-06-02 13:43:34 +01:00
Peter 'Pita' Martischka
280b4ab9c7
Create a template of the settings file
2011-06-02 12:15:02 +01:00
Peter 'Pita' Martischka
d0da998299
removed debug message
2011-05-13 15:53:20 +01:00
Peter 'Pita' Martischka
b4ca337020
Change in the project directory before starting server.js, solves a problem with npm
2011-05-13 15:52:07 +01:00
Lukas Martini
debbced185
Fixing scripts to run from both bin/ and /.
2011-04-07 19:54:41 +02:00
Peter 'Pita' Martischka
4b99fec6ae
Improve run.sh
2011-04-07 14:51:46 +01:00
Peter 'Pita' Martischka
325c322a27
first-commit
2011-03-26 13:10:41 +00:00