mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
13 lines
237 B
Bash
13 lines
237 B
Bash
#!/bin/sh
|
|
|
|
addgroup -S lxd 2>/dev/null
|
|
|
|
for file in /etc/subuid /etc/subgid; do
|
|
if ! $(grep -q root "$file"); then
|
|
echo "root:1000000:1000000000" >> "$file"
|
|
else
|
|
sed -i 's/^root.*/root:1000000:1000000000/' "$file"
|
|
fi
|
|
done
|
|
|
|
exit 0
|