Jacobo de Vera
5767c01845
Use file descriptor 3 for main deployment loop
Before this, some deployment scripts would interact with STDIN and that would cause this loop to skip some elements. By using descriptor 3 we avoid clashing with the very common stdin and stdout.
2 months ago
Jacobo de Vera
554b3014d0
Fix eval bug by quoting
Before this, the eval call would try to run some commands (if they were compound commands) in the yaml file on the machine running acme.sh
Eval might not be worth it for the little benefit it brings.
2 months ago
Jacobo de Vera
881b8c806f
Remove config logging when checking
Because it causes a mysterious crash and it's honestly not worth it.
2 months ago
Jacobo de Vera
e3345d746f
Remove explicit save of the deployhook
acme.sh takes care of that
2 months ago
Jacobo de Vera
2ba4a1b659
Remove unnecessary resetting of IFS
2 months ago
Jacobo de Vera
a98c2109ea
Quote paths to prevent word splitting
2 months ago
Jacobo de Vera
1e70fc247a
Explain _clear_envs rationale
2 months ago
Jacobo de Vera
929bb68e8c
Explain the use of eval
2 months ago
Jacobo de Vera
14ac6ef51f
Make failure to check file stop the deployment
Before this, checker issues were only logged. This stops the deployment if any configuration is incorrect.
2 months ago
Jacobo de Vera
cca19f16ab
Fix config file checks
The config file checks were returning okay even when there were errors. The yq tool returns "null" when it cannot find what's queried, but exists with a 0 rc still.
2 months ago
Jacobo de Vera
ffff902da8
Support spaces in service names
- Prefer using a pipe to `while read`
- But use a temp file when the loop needs to modify variables that need to be used outside the loop, as the pipe creates a subshell and modifications do not survive after the loop exits.
2 months ago
tomo
effe603a69
fixed yml file env list
4 months ago
tomo
25f6b794ac
removed unneeded return value
5 months ago
tomo
59870da3bc
removed dead code
5 months ago
tomo
3551e4a787
implemented exiting with the number of failed deployments
5 months ago
tomo
1dc597b538
implemented exiting with 1 if at least one deployment fails
5 months ago
tomo
eca6e69af1
fixed bug with envs due to the use of a wrong function
5 months ago
tomo
5189a310e2
simplified deploy method
6 months ago
tomo
7949c10934
fixed IFS problems for some hooks
6 months ago
tomo
bc23e8ca30
fixed formatting
7 months ago
tomo
67b5176f33
removed configs and implemented specification of deploy file name
7 months ago
tomo
69858fbd5f
Update links in multideploy.sh
8 months ago
tomo
f26d40404a
fixed missing wiki link
8 months ago
tomo
98aaff68f4
allowed using varaibles in deploy file
8 months ago
tomo
b6a6e67d04
added header doc
8 months ago
tomo
7a35d6838d
added docs and enhanced log messages
8 months ago
tomo
a9c2435c88
added docs
8 months ago
tomo
8d77bef828
fixed IFS problems
8 months ago
tomo
ccd9d9a79e
improved preprocessing and fixed bug with wrong param of services
8 months ago
tomo
6189aa5a35
added debug messages
8 months ago
tomo
06e75de728
implemented checking for different kinds of deploy file
8 months ago
tomo
4fbade3d05
implemented deploying to services
8 months ago
tomo
a6060f9015
implemented handling envs
8 months ago
tomo
18575b1eb9
fixed formatting and private var names
8 months ago
tomo
f1d214ae96
refactored getting services
8 months ago
tomo
cfe32265a8
fixed indents
8 months ago
tomo
0ce28302bd
implemented checking deploy file
8 months ago