Update docker/headscale/start.sh
This commit is contained in:
parent
674f55950f
commit
611cd628b4
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
echo loading start.sh
|
||||||
replace_config_values() {
|
replace_config_values() {
|
||||||
local config_template="/etc/headscale/config-example.yaml"
|
echo replacing configuration values
|
||||||
|
local config_template="/etc/headscale-example/config-example.yaml"
|
||||||
local config_output="/etc/headscale/config.yaml"
|
local config_output="/etc/headscale/config.yaml"
|
||||||
|
|
||||||
# Default values
|
# Default values
|
||||||
|
@ -59,4 +60,8 @@ replace_config_values() {
|
||||||
|
|
||||||
# Run the function to replace variables and start headscale
|
# Run the function to replace variables and start headscale
|
||||||
replace_config_values
|
replace_config_values
|
||||||
|
echo configuration implementation system finished.
|
||||||
|
cat /etc/headscale/config.yaml
|
||||||
|
|
||||||
|
echo launching headscale.
|
||||||
headscale
|
headscale
|
||||||
|
|
Loading…
Reference in New Issue