Compare commits
2 Commits
ee9b2257da
...
077eec64ee
Author | SHA1 | Date | |
---|---|---|---|
077eec64ee | |||
379876f4f6 |
@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
updates_available () {
|
updates_available () {
|
||||||
docker pull $1
|
docker pull "$1"
|
||||||
if test "$(docker run -it --rm $1 /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then
|
if test "$(docker run -it --rm "$1" /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
|
4
start.sh
4
start.sh
@ -29,7 +29,7 @@ while [ "$GROUPADD" != "$i" ] ;do
|
|||||||
GROUP_NAME=${i%%:*}
|
GROUP_NAME=${i%%:*}
|
||||||
GROUP_GID="${i#$GROUP_NAME:}"
|
GROUP_GID="${i#$GROUP_NAME:}"
|
||||||
|
|
||||||
groupadd --gid $GROUP_GID $GROUP_NAME
|
groupadd --gid "$GROUP_GID" "$GROUP_NAME"
|
||||||
done
|
done
|
||||||
|
|
||||||
# USERADD="user1:1000:1000;user2:1001:1000;user3:1002:1002"
|
# USERADD="user1:1000:1000;user2:1001:1000;user3:1002:1002"
|
||||||
@ -42,7 +42,7 @@ while [ "$USERADD" != "$i" ] ;do
|
|||||||
USER_UID="${UID_GID%%:*}"
|
USER_UID="${UID_GID%%:*}"
|
||||||
USER_GID="${UID_GID#$USER_UID:}"
|
USER_GID="${UID_GID#$USER_UID:}"
|
||||||
|
|
||||||
useradd --home-dir $BASE_DIR/$USER_NAME --uid $USER_UID --gid $USER_GID $USER_NAME
|
useradd --home-dir "$BASE_DIR/$USER_NAME" --uid "$USER_UID" --gid "$USER_GID" "$USER_NAME"
|
||||||
done
|
done
|
||||||
|
|
||||||
exec /usr/sbin/sshd -D -e
|
exec /usr/sbin/sshd -D -e
|
||||||
|
Loading…
Reference in New Issue
Block a user