mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-09 09:51:30 +00:00
live-build/ubuntu-touch/hooks/02-add_user_to_groups.chroot: Delete
redundant code to create global static groups, which are already created more correctly by base-passwd on every Ubuntu system.
This commit is contained in:
parent
295a31627f
commit
699ed3f6a1
8
debian/changelog
vendored
8
debian/changelog
vendored
@ -1,3 +1,11 @@
|
|||||||
|
livecd-rootfs (2.148) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* live-build/ubuntu-touch/hooks/02-add_user_to_groups.chroot: Delete
|
||||||
|
redundant code to create global static groups, which are already created
|
||||||
|
more correctly by base-passwd on every Ubuntu system.
|
||||||
|
|
||||||
|
-- Colin Watson <cjwatson@ubuntu.com> Wed, 05 Jun 2013 13:11:34 +0100
|
||||||
|
|
||||||
livecd-rootfs (2.147) saucy; urgency=low
|
livecd-rootfs (2.147) saucy; urgency=low
|
||||||
|
|
||||||
* sync ubuntu-touch customzation scripts with phablet build tree
|
* sync ubuntu-touch customzation scripts with phablet build tree
|
||||||
|
@ -11,34 +11,6 @@ else
|
|||||||
echo "User admin does not exists in /etc/group must create"
|
echo "User admin does not exists in /etc/group must create"
|
||||||
groupadd admin
|
groupadd admin
|
||||||
fi
|
fi
|
||||||
/bin/egrep -i "^tty" /etc/group
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "User tty exists in /etc/group"
|
|
||||||
else
|
|
||||||
echo "User tty does not exists in /etc/group must create"
|
|
||||||
groupadd tty
|
|
||||||
fi
|
|
||||||
/bin/egrep -i "^dialout" /etc/group
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "User dialout exists in /etc/group"
|
|
||||||
else
|
|
||||||
echo "User dialout does not exists in /etc/group must create"
|
|
||||||
groupadd dialout
|
|
||||||
fi
|
|
||||||
/bin/egrep -i "^cdrom" /etc/group
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "User cdrom exists in /etc/group"
|
|
||||||
else
|
|
||||||
echo "User cdrom does not exists in /etc/group must create"
|
|
||||||
groupadd cdrom
|
|
||||||
fi
|
|
||||||
/bin/egrep -i "^plugdev" /etc/group
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "User plugdev exists in /etc/group"
|
|
||||||
else
|
|
||||||
echo "User plugdev does not exists in /etc/group must create"
|
|
||||||
groupadd plugdev
|
|
||||||
fi
|
|
||||||
/bin/egrep -i "^audio" /etc/group
|
/bin/egrep -i "^audio" /etc/group
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
# Needed to change group id as audio is already created by ubuntu
|
# Needed to change group id as audio is already created by ubuntu
|
||||||
@ -48,27 +20,6 @@ else
|
|||||||
echo "User audio does not exists in /etc/group must create"
|
echo "User audio does not exists in /etc/group must create"
|
||||||
groupadd -g 1005 audio
|
groupadd -g 1005 audio
|
||||||
fi
|
fi
|
||||||
/bin/egrep -i "^dip" /etc/group
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "User dip exists in /etc/group"
|
|
||||||
else
|
|
||||||
echo "User dip does not exists in /etc/group must create"
|
|
||||||
groupadd dip
|
|
||||||
fi
|
|
||||||
/bin/egrep -i "^video" /etc/group
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "User video exists in /etc/group"
|
|
||||||
else
|
|
||||||
echo "User video does not exists in /etc/group must create"
|
|
||||||
groupadd video
|
|
||||||
fi
|
|
||||||
/bin/egrep -i "^adm" /etc/group
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "User adm exists in /etc/group"
|
|
||||||
else
|
|
||||||
echo "User adm does not exists in /etc/group must create"
|
|
||||||
groupadd adm
|
|
||||||
fi
|
|
||||||
/bin/egrep -i "^gps" /etc/group
|
/bin/egrep -i "^gps" /etc/group
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "User gps exists in /etc/group"
|
echo "User gps exists in /etc/group"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user