pam & base-files

This commit is contained in:
aliriza committed 2022-12-02 11:10:47 +00:00
1 parent 0cd87b53e3
commit 39eae73b1d
3 files changed
+8 -11

No files matched your search

-10
View File
@@ -6,16 +6,6 @@ if [ ! -f /var/lib/ymp/sysconf/shadow/postinstall.done ] ; then
touch /etc/group
date > /var/lib/ymp/sysconf/shadow/postinstall.done
fi
if ! grep "^users:" /etc/group >/dev/null ; then
echo "users:x:100:" >> /etc/group
fi
if ! grep "^wheel:" /etc/group >/dev/null ; then
echo "wheel:x:10:root" >> /etc/group
fi
if ! grep "^root:" /etc/group >/dev/null ; then
echo "root:x:0:root" >> /etc/group
fi
if [ ! -f /etc/shadow ] ; then
echo "root:*::0:::::" > /etc/shadow
chmod 600 /etc/shadow
+7
View File
@@ -7,6 +7,13 @@ cat /etc/passwd.d/* | sed "s/#.*//g"| while read line ; do
echo "${line}" >> /etc/passwd
fi
done
cat /etc/group.d/* | sed "s/#.*//g"| while read line ; do
if [ -z "${line}" ] ; then
: skip empty line
elif ! grep "^${line}$" /etc/group > /dev/null ; then
echo "${line}" >> /etc/group
fi
done
if [ ! -f /var/lib/ymp/sysconf/base-files/postinstall.done ]; then
mkdir -p /var/lib/ymp/sysconf/base-files/
mkdir /data/user/root -p
+1 -1
View File
@@ -9,7 +9,7 @@ maintainer='sulincix'
license=('GPLv3')
source=("https://gitlab.com/sulix/devel/sources/base-files/-/archive/$version/base-files-$version.zip"
"base-files.sysconf")
md5sums=('1a7f97c99b2ba940d91faade186f4b3f'
md5sums=('0941492e4e45975adcffc440a72b469f'
'SKIP')
arch=(x86_64)
group=(sys.base)