vsftpd/vsftpd-generator
Jiri Skala 6406302865 - replaced systemd path by _unitdir macro
- fixes #7194344 - multiple instances (target, generator)
2013-08-15 21:09:12 +02:00

16 lines
352 B
Bash
Executable File

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