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