From 4348cbb93645b06a8d3f0ad658239301bdd7afb9 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Mon, 3 Dec 2007 15:35:31 +0000 Subject: Cleaning up GuidedSetupCode and only focusing on AdvancedUsers Interface git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@400 ab2d0c66-481e-0410-8bed-d214d4d58bed --- shorewall-model.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'shorewall-model.lua') diff --git a/shorewall-model.lua b/shorewall-model.lua index 311ad86..b6f6c39 100644 --- a/shorewall-model.lua +++ b/shorewall-model.lua @@ -31,11 +31,11 @@ function check_config () end function restart_service () - -- FIXME: Read getstatus AFTER restart so the new 'restart date' is shown. - local status = get_status() local f,err = io.popen("/etc/init.d/shorewall restart") - status.restart = f:read("*a") + local restart = f:read("*a") f:close() + local status = get_status() + status.restart = restart return status end -- cgit v1.2.3