From 5d27ad7d728bba2860ea81ba833d9376c282992d Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Fri, 7 Mar 2008 16:43:00 -0800 Subject: Fix Bug 2707 Missing from Glendale - Delete log file <> fixed --- scripts/vyatta-delete-log-file.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/vyatta-delete-log-file.sh (limited to 'scripts') diff --git a/scripts/vyatta-delete-log-file.sh b/scripts/vyatta-delete-log-file.sh new file mode 100644 index 0000000..d0463dd --- /dev/null +++ b/scripts/vyatta-delete-log-file.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ -e /var/log/user/$1 ] +then + rm -f /var/log/user/$1 +else + echo "File does not exist" +fi -- cgit v1.2.3