samba: dont install systemd services if SAMBA_SERVER is not enabled

closes #2945
This commit is contained in:
Anton Serguienko 2014-02-17 22:01:17 +02:00 committed by Stefan Saraev
parent ea41c9fe16
commit a54157ae2c

View File

@ -193,7 +193,9 @@ makeinstall_target() {
}
post_install() {
enable_service samba-defaults.service
enable_service nmbd.service
enable_service smbd.service
if [ "$SAMBA_SERVER" = "yes" ]; then
enable_service samba-defaults.service
enable_service nmbd.service
enable_service smbd.service
fi
}