ACC SHELL

Path : /usr/lib/YaST2/bin/
File Upload :
Current File : //usr/lib/YaST2/bin/update_users_groups

#!/bin/bash
#
# script to add missing passwd or group entries
# before update
#
# call as "fill_passd_group <target-dir>"
# /etc/x == file from inst-sys
# $1/etc/x == file from target
#
# Rename game -> games, wwwadmin -> www
for i in $1/etc/group $1/etc/gshadow ; do
  if test -e $i ; then
    sed -e "s|^game:|games:|" -e "s|^wwwadmin:|www:|" $i > $i.t
    cat $i.t > $i
    rm -f $i.t
  fi
done

ACC SHELL 2018