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.
This commit is contained in:
Juan RP 2015-06-03 10:36:31 +02:00
parent a46241ea4d
commit af80cbfe34
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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"