fix: create mesh state before control starts
This commit is contained in:
parent
b769d36522
commit
315d7c3182
1 changed files with 1 additions and 6 deletions
|
|
@ -691,12 +691,7 @@ ensure_mesh_state() {
|
||||||
}
|
}
|
||||||
|
|
||||||
repair_mesh_state_permissions() {
|
repair_mesh_state_permissions() {
|
||||||
[[ -d "$MESH_DIR" ]] || return 0
|
ensure_mesh_state
|
||||||
install -d -m 0770 -o root -g "$CONTROL_USER" "$MESH_DIR"
|
|
||||||
if [[ -e "$MESH_DIR/nodes.tsv" ]]; then
|
|
||||||
chown root:"$CONTROL_USER" "$MESH_DIR/nodes.tsv"
|
|
||||||
chmod 0660 "$MESH_DIR/nodes.tsv"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render_hub_wireguard_config() {
|
render_hub_wireguard_config() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue