diff --git a/src/build_dpkg.sh b/src/build_dpkg.sh index d24f86ec..ddad745b 100755 --- a/src/build_dpkg.sh +++ b/src/build_dpkg.sh @@ -230,7 +230,7 @@ cp mikrotik_ipv6.example.toml "$ETC_LIBREQOS_DIR"/mikrotik_ipv6.example.toml # Ensure helper scripts are executable in the package for helper_script in update_api.sh install_caddy.sh disable_caddy.sh; do if [ -f "$LQOS_DIR/$helper_script" ]; then - chmod a+x "$LQOS_DIR/$helper_script" || true + chmod a+x "$LQOS_DIR/$helper_script" fi done diff --git a/src/build_rust.sh b/src/build_rust.sh index 1c5976d8..a53a827c 100755 --- a/src/build_rust.sh +++ b/src/build_rust.sh @@ -134,6 +134,16 @@ popd > /dev/null || exit cp rust/target/$TARGET/liblqos_python.so ./liblqos_python.so.new mv liblqos_python.so.new liblqos_python.so +# Ensure runtime helper scripts required by the WebUI/setup flows exist and stay executable. +for helper_script in update_api.sh install_caddy.sh disable_caddy.sh +do + if [ ! -f "$helper_script" ]; then + echo "Expected runtime helper $helper_script to exist." + exit 1 + fi + chmod a+x "$helper_script" +done + # Update the lqos_api binary