File: prerm

package info (click to toggle)
slocate 2.4-2potato1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 228 kB
  • ctags: 177
  • sloc: ansic: 1,921; sh: 294; makefile: 59
file content (17 lines) | stat: -rw-r--r-- 221 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

DBPATH=/var/lib/slocate/
SUIDUNREG=/usr/sbin/suidunregister
SLOCATE=/usr/bin/slocate

if [ -d $DBPATH ]
then
	rm -f $DBPATH/*
fi
if [ -x $SUIDUNREG ]
then
	if [ -x $SLOCATE ]
	then
		$SUIDUNREG $SLOCATE
	fi
fi