Blame SOURCES/vsftpd-generator

90e381
#!/bin/bash
90e381
90e381
confdir=/etc/vsftpd
90e381
unitdir=/usr/lib/systemd/system
90e381
targetdir=$1/vsftpd.target.wants
90e381
90e381
mkdir -p ${targetdir}
90e381
90e381
for f in $(ls -1 ${confdir}/*.conf | awk -F "." '{print $1}' | awk -F "/" '{print $4}')
90e381
do
90e381
  echo "Generating systemd units for $f"
90e381
  ln -s ${unitdir}/vsftpd\@.service ${targetdir}/vsftpd\@$f.service > /dev/null 2>&1
90e381
done
90e381
90e381
exit 0