mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
24 lines
583 B
Bash
Executable File
24 lines
583 B
Bash
Executable File
#!/bin/bash
|
|
|
|
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBC
|
|
strings /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC_2.2
|
|
|
|
notice() {
|
|
echo -e "\033[36m $1 \033[0m "
|
|
}
|
|
|
|
if [ "$(id -u)" -eq '0' ];then
|
|
USER_ID=${LOCAL_USER_ID:-1000}
|
|
GROUP_ID=${LOCAL_GROUP_ID:-1000}
|
|
notice "$USER_ID, $GROUP_ID"
|
|
usermod -u ${USER_ID} -g ${GROUP_ID} user > /dev/null 2>&1
|
|
chown -R ${USER_ID}:${GROUP_ID} /workspace > /dev/null 2>&1
|
|
|
|
# ls -l
|
|
# cat /etc/passwd
|
|
exec gosu user docker/entrypoint
|
|
|
|
fi
|
|
|
|
echo "nothing"
|
|
# exec /usr/local/bin/gosu user entrypoint |