summaryrefslogtreecommitdiff
path: root/scripts/vyatta-delete-log-file.sh
diff options
context:
space:
mode:
authorMohit Mehta <mohit@vyatta.com>2008-03-07 16:43:00 -0800
committerMohit Mehta <mohit@vyatta.com>2008-03-07 16:43:00 -0800
commit5d27ad7d728bba2860ea81ba833d9376c282992d (patch)
tree9daaac0bfc00aca55f2500b6cb7e2c8bce0f7da8 /scripts/vyatta-delete-log-file.sh
parentfa4a13aa7ed877c8b6f20f8f7bb1acd84466fa96 (diff)
downloadvyatta-op-5d27ad7d728bba2860ea81ba833d9376c282992d.tar.gz
vyatta-op-5d27ad7d728bba2860ea81ba833d9376c282992d.zip
Fix Bug 2707 Missing from Glendale
- Delete log file <> fixed
Diffstat (limited to 'scripts/vyatta-delete-log-file.sh')
-rw-r--r--scripts/vyatta-delete-log-file.sh8
1 files changed, 8 insertions, 0 deletions
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