diff --git a/imageroot/actions/configure-module/20configure b/imageroot/actions/configure-module/20systemd old mode 100644 new mode 100755 similarity index 100% rename from imageroot/actions/configure-module/20configure rename to imageroot/actions/configure-module/20systemd diff --git a/imageroot/actions/create-module/10firewall b/imageroot/actions/create-module/10firewall deleted file mode 100755 index 85e7d3b..0000000 --- a/imageroot/actions/create-module/10firewall +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env python3 - -# -# Copyright (C) 2024 Nethesis S.r.l. -# SPDX-License-Identifier: GPL-3.0-or-later -# - -import os -import agent - -# open firewall for DNS and DHCP -agent.assert_exp(agent.add_public_service(os.environ['MODULE_ID'], ["53/udp", "67/udp"])) diff --git a/imageroot/actions/create-module/10setup b/imageroot/actions/create-module/10setup new file mode 100755 index 0000000..ded3ad7 --- /dev/null +++ b/imageroot/actions/create-module/10setup @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +# +# Copyright (C) 2024 Nethesis S.r.l. +# SPDX-License-Identifier: GPL-3.0-or-later +# + +# Create the dnsmasq.d directory +mkdir -p "${AGENT_INSTALL_DIR}/dnsmasq.d" diff --git a/imageroot/actions/destroy-module/10destroy b/imageroot/actions/destroy-module/10destroy deleted file mode 100755 index 0c95da2..0000000 --- a/imageroot/actions/destroy-module/10destroy +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env python3 - -# -# Copyright (C) 2024 Nethesis S.r.l. -# SPDX-License-Identifier: GPL-3.0-or-later -# - -import os -import agent - -# close firewall for DNS and DHCP -agent.assert_exp(agent.remove_public_service(os.environ['MODULE_ID']))