From af80cbfe3496a0b9c9b64f4bceb0a5189570a790 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 3 Jun 2015 10:36:31 +0200 Subject: [PATCH] base-files: if pwconv/grpconv exist and uid==0, run them. We do this here to have a single entry point to configure system accounts. --- srcpkgs/base-files/INSTALL | 8 ++++++++ srcpkgs/base-files/template | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/base-files/INSTALL diff --git a/srcpkgs/base-files/INSTALL b/srcpkgs/base-files/INSTALL new file mode 100644 index 00000000000..6f4974d74ab --- /dev/null +++ b/srcpkgs/base-files/INSTALL @@ -0,0 +1,8 @@ +# This script enables shadow password and groups. +case "$ACTION" in +post) + if [ -x bin/pwconv && -x bin/grpconv -a "$(id -u)" -eq 0 ]; then + pwconv && grpconv + fi + ;; +esac diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template index 507272301db..3e900326204 100644 --- a/srcpkgs/base-files/template +++ b/srcpkgs/base-files/template @@ -1,6 +1,6 @@ # Template file for 'base-files' pkgname=base-files -version=0.124 +version=0.125 revision=1 bootstrap=yes depends="base-directories xbps-triggers"