Browse Source

package/sudo: remove dist example config

Signed-off-by: Stephan Henningsen <stephan+buildroot@asklandd.dk>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Stephan Henningsen 5 năm trước cách đây
mục cha
commit
9a73470ab1
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      package/sudo/sudo.mk

+ 6 - 0
package/sudo/sudo.mk

@@ -64,4 +64,10 @@ define SUDO_PERMISSIONS
 	/usr/bin/sudo f 4755 0 0 - - - - -
 endef
 
+define SUDO_REMOVE_DIST_EXAMPLES
+	$(RM) $(TARGET_DIR)/etc/sudoers.dist
+	rmdir $(TARGET_DIR)/etc/sudoers.d
+endef
+SUDO_POST_INSTALL_TARGET_HOOKS += SUDO_REMOVE_DIST_EXAMPLES
+
 $(eval $(autotools-package))