# There has got to be a better way to do this.
if [ "$(grep -Fx 'EXTRA_GROUPS="audio' /etc/adduser.conf)" = "" ]; then
echo -e "\n# Ubuntu Studio Configuration\n# Add other EXTRA_GROUPS before this line" >> /etc/adduser.conf
echo 'EXTRA_GROUPS="audio"' >> /etc/adduser.conf
fi
if [ "$(grep -Fx 'ADD_EXTRA_GROUPS=1' /etc/adduser.conf)" = "" ]; then
echo 'ADD_EXTRA_GROUPS=1' >> /etc/adduser.conf
fi
/etc/adduser.conf is a conffile owned by the adduser package. Modifying it from package maintainer scripts is not allowed.
So, I overlooked this earlier:
# There has got to be a better way to do this. GROUPS= "audio' /etc/adduser.conf)" = "" ]; then GROUPS= "audio" ' >> /etc/adduser.conf GROUPS= 1' /etc/adduser.conf)" = "" ]; then GROUPS= 1' >> /etc/adduser.conf
if [ "$(grep -Fx 'EXTRA_
echo -e "\n# Ubuntu Studio Configuration\n# Add other EXTRA_GROUPS before this line" >> /etc/adduser.conf
echo 'EXTRA_
fi
if [ "$(grep -Fx 'ADD_EXTRA_
echo 'ADD_EXTRA_
fi
/etc/adduser.conf is a conffile owned by the adduser package. Modifying it from package maintainer scripts is not allowed.