docker-mod-openssh-server-t.../root/etc/s6-overlay/s6-rc.d/init-mod-openssh-server-tweaks/run

15 lines
419 B
Text
Raw Normal View History

2023-01-29 00:01:58 +01:00
#!/usr/bin/with-contenv bash
2023-01-29 00:33:29 +01:00
echo "[openssh-server-tweaks] started"
if [ -n "$TWEAK_PROFILE_UMASK" ]; then
echo "Setting profile umask to $TWEAK_PROFILE_UMASK"
sed -i "s/^umask .*/umask $TWEAK_PROFILE_UMASK/" /etc/profile
fi
2023-01-29 00:42:29 +01:00
if [ -n "$TWEAK_USER_HOME" ]; then
echo "Setting home of $USER_NAME to $TWEAK_USER_HOME"
usermod --home "$TWEAK_USER_HOME" "$USER_NAME"
fi
2023-01-29 00:33:29 +01:00
echo "[openssh-server-tweaks] done"