Browse Source

bugfix

feature/startup-from-labels
Mario Alegre 5 years ago
parent
commit
8af7c7737c
  1. 6
      install.sh

6
install.sh

@ -50,12 +50,12 @@ sudo chmod +x /etc/containers/startup.sh
# configure containers user
name=containers
uid=5000
subrange="1000000:1000000000"
if ! getent group $name; then
subrange="1000000-1000000000"
if [[ ! $(getent group $name) ]]; then
echo "Creating group '$name' ..."
sudo groupadd -r -g $uid $name
fi
if ! getent passwd $name; then
if [[ ! $(getent passwd $name) ]]; then
echo "Creating user '$name' ..."
sudo useradd -r -u $uid -p '*'-s /sbin/nologin -d /srv/vol -g $name $name
fi

Loading…
Cancel
Save