File: HOME_FTP

package info (click to toggle)
cruft 0.9.16
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,308 kB
  • sloc: ansic: 803; perl: 315; sh: 178; makefile: 61
file content (13 lines) | stat: -rwxr-xr-x 238 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/dash
set -e
. /usr/lib/cruft/common.sh
cruft_debug

FTPDIR=/home/ftp
if grep '^ftp:' /etc/passwd >/dev/null 2>&1; then
	FTPDIR=`awk -F: '$1 == "ftp" { print $6 }' /etc/passwd`
fi

if [ -e "$FTPDIR" ]; then
	cruft_find "$FTPDIR"
fi