mirror of
https://github.com/gyptazy/ProxLB.git
synced 2026-04-05 20:31:57 +02:00
17 lines
367 B
Bash
Executable File
17 lines
367 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
#DEBHELPER#
|
|
if [ "$1" = "remove" ]; then
|
|
systemctl stop proxlb.service || true
|
|
systemctl disable proxlb.service || true
|
|
|
|
# Remove the 'plb' user if it exists
|
|
if id "plb" &>/dev/null; then
|
|
userdel --remove plb
|
|
echo "User 'plb' removed."
|
|
else
|
|
echo "User 'plb' does not exist, skipping removal."
|
|
fi
|
|
fi
|