Correction in post-remove function

Signed-off-by: Stefano Capitani's avatarSte74 <stefano@manjaro.org>
parent 4af5a09f
......@@ -45,14 +45,14 @@ post_install() {
echo ""
msg "Samba services should now be enabled."
msg "Please add new users to 'sambashare' group."
msg "Reboot your system, so changes will take affect."
msg "Reboot your system, so changes will take effect.."
echo ""
}
post_remove() {
msg "Attempting to disable Samba services..."
! systemctl is-active smb >/dev/null || systemctl disable smb
! systemctl is-active nmb >/dev/null || systemctl disable nmb
! systemctl is-enabled smb >/dev/null || systemctl disable smb
! systemctl is-enabled nmb >/dev/null || systemctl disable nmb
! getent group sambashare || groupdel sambashare
echo ""
msg "Samba services should now be disabled. Reboot your system."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment