initial import
This commit is contained in:
24
proftpd/proftpd.install
Normal file
24
proftpd/proftpd.install
Normal file
@@ -0,0 +1,24 @@
|
||||
post_install() {
|
||||
if ! getent group proftpd &>/dev/null; then
|
||||
groupadd -r proftpd >& /dev/null
|
||||
fi
|
||||
if ! getent passwd proftpd &>/dev/null; then
|
||||
useradd -r -d /var/lib/ftp -g proftpd -s /bin/false proftpd
|
||||
usermod -aG ftp proftpd
|
||||
fi
|
||||
|
||||
chown proftpd:proftpd /var/lib/ftp
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
if getent passwd proftpd &>/dev/null; then
|
||||
userdel proftpd >/dev/null
|
||||
fi
|
||||
if getent group proftpd &>/dev/null; then
|
||||
groupdel proftpd >/dev/null
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user