feat: make packaging compatible with build tools

This commit is contained in:
Rudra Saraswat 2023-05-24 15:44:49 +05:30
parent 9734d9daaf
commit 4f7c481ce9

View file

@ -313,11 +313,6 @@ fi
if ! grep -q "\"${_uname}\" ALL = (root) NOPASSWD:ALL" /etc/sudoers.d/sudoers &>/dev/null; then
printf "\"%s\" ALL = (root) NOPASSWD:ALL\n" "$_uname" >> /etc/sudoers.d/sudoers
fi
if ! grep -q "^${_uname}:" /etc/group; then
if ! groupadd --force --gid "$_cgid" "$_uname"; then
printf "%s:x:%s:" "$_uname" "$_cgid" >> /etc/group
fi
fi
if [[ $_cuid -eq 1000 ]] && grep -q ubuntu /etc/passwd; then
userdel -r ubuntu &>/dev/null
groupdel ubuntu &> /dev/null