Core 165: Export location DB in new format.

Message ID 20220218050742.10014-1-stefan.schantl@ipfire.org
State Accepted
Commit 1bd6e152c40018054c9cad81000fcb7580153d90
Headers
Series Core 165: Export location DB in new format. |

Commit Message

Stefan Schantl Feb. 18, 2022, 5:07 a.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 config/rootfiles/core/165/update.sh | 6 ++++++
 1 file changed, 6 insertions(+)
  

Comments

Michael Tremer Feb. 18, 2022, 8:26 a.m. UTC | #1
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>

> On 18 Feb 2022, at 05:07, Stefan Schantl <stefan.schantl@ipfire.org> wrote:
> 
> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
> ---
> config/rootfiles/core/165/update.sh | 6 ++++++
> 1 file changed, 6 insertions(+)
> 
> diff --git a/config/rootfiles/core/165/update.sh b/config/rootfiles/core/165/update.sh
> index 7371d047a..564f58606 100644
> --- a/config/rootfiles/core/165/update.sh
> +++ b/config/rootfiles/core/165/update.sh
> @@ -109,6 +109,12 @@ ldconfig
> # Filesytem cleanup
> /usr/local/bin/filesystem-cleanup
> 
> +# Export location DB in new format.
> +/usr/bin/location export \
> +	--directory=/var/lib/location/ipset \
> +	--family=ipv4 \
> +	--format=ipset
> +
> # Start services
> telinit u
> /etc/rc.d/init.d/firewall restart
> -- 
> 2.30.2
>
  

Patch

diff --git a/config/rootfiles/core/165/update.sh b/config/rootfiles/core/165/update.sh
index 7371d047a..564f58606 100644
--- a/config/rootfiles/core/165/update.sh
+++ b/config/rootfiles/core/165/update.sh
@@ -109,6 +109,12 @@  ldconfig
 # Filesytem cleanup
 /usr/local/bin/filesystem-cleanup
 
+# Export location DB in new format.
+/usr/bin/location export \
+	--directory=/var/lib/location/ipset \
+	--family=ipv4 \
+	--format=ipset
+
 # Start services
 telinit u
 /etc/rc.d/init.d/firewall restart