mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-05 15:19:35 +02:00
fix(openthread-br): use systemd instead of init.d (#14942)
This commit is contained in:
@@ -38,6 +38,13 @@ function update_script() {
|
||||
systemctl stop otbr-agent
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
if [[ -f /etc/init.d/otbr-agent ]] || [[ -f /etc/init.d/otbr-web ]]; then
|
||||
msg_info "Removing legacy services"
|
||||
rm -f /etc/init.d/otbr-agent /etc/init.d/otbr-web
|
||||
systemctl daemon-reload
|
||||
msg_ok "Removed legacy services"
|
||||
fi
|
||||
|
||||
msg_info "Backing up Configuration"
|
||||
cp /etc/default/otbr-agent /etc/default/otbr-agent.bak
|
||||
msg_ok "Backed up Configuration"
|
||||
@@ -61,6 +68,7 @@ function update_script() {
|
||||
-DOTBR_WEB=ON \
|
||||
-DOTBR_BORDER_ROUTING=ON \
|
||||
-DOTBR_BACKBONE_ROUTER=ON \
|
||||
-DOTBR_SYSTEMD_UNIT_DIR=/etc/systemd/system \
|
||||
-DOT_FIREWALL=ON \
|
||||
-DOT_POSIX_NAT64_CIDR="192.168.255.0/24" \
|
||||
..
|
||||
|
||||
@@ -64,6 +64,7 @@ $STD cmake -GNinja \
|
||||
-DOTBR_WEB=ON \
|
||||
-DOTBR_BORDER_ROUTING=ON \
|
||||
-DOTBR_BACKBONE_ROUTER=ON \
|
||||
-DOTBR_SYSTEMD_UNIT_DIR=/etc/systemd/system \
|
||||
-DOT_FIREWALL=ON \
|
||||
-DOT_POSIX_NAT64_CIDR="192.168.255.0/24" \
|
||||
..
|
||||
|
||||
Reference in New Issue
Block a user