mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-29 13:05:56 +10:00
group-safety
This commit is contained in:
parent
c44e303084
commit
4423f9cef7
1 changed files with 6 additions and 0 deletions
|
|
@ -39,6 +39,12 @@ echo 'fs.inotify.max_user_watches=1000000' >> /etc/sysctl.conf
|
|||
echo '* soft nofile 1000000' >> /etc/security/limits.conf
|
||||
echo '* hard nofile 1000000' >> /etc/security/limits.conf
|
||||
|
||||
# Remove any existing group with id 999 that is not the docker group
|
||||
getent group 999 | \
|
||||
grep -v docker | \
|
||||
cut -d: -f1 | \
|
||||
xargs groupdel
|
||||
|
||||
# Install Docker
|
||||
sh -c "$(curl -fsSL get.docker.com)" && \
|
||||
usermod -aG docker $DESKTOP_ENVIRONMENT_USER
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue