mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
* fix: group not found report (#2312) 解决以下问题: 当群组踢人时,该人不在群内,返回“群聊不存在”的BUG https://github.com/Mrs4s/go-cqhttp/issues/1774#issue-1459854639 * Update bug-report.yaml (#2234) * 更新docker action, 支持更多的平台 (#2217) * Update build_docker_image.yml * Update docker-entrypoint.sh * Update build_docker_image.yml * ✨ update docker action, more platforms are supported --------- Co-authored-by: xiwangly2 <1334850101@qq.om> Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com> * 🐛 修复时区不是东八区的 BUG (#2212) 设置 TZ 环境变量需要先装`tzdata`这个包才会生效 * Update bug-report.yaml (#2126) Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com> * Docker: support continuous params on CMD option (#1829) now it supports usage like `docker run -it --rm go-cqhttp -faststart` Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com> * make lint happy --------- Co-authored-by: PSoul <psoul1@163.com> Co-authored-by: 简律纯 <i@jyunko.cn> Co-authored-by: LY <1334850101@qq.com> Co-authored-by: xiwangly2 <1334850101@qq.om> Co-authored-by: Antonia Adams <10476982+li-xunhuan@users.noreply.github.com> Co-authored-by: Akirami <66513481+A-kirami@users.noreply.github.com> Co-authored-by: Nanahira <78877@qq.com>
21 lines
497 B
Bash
21 lines
497 B
Bash
#!/bin/sh
|
|
|
|
USER=abc
|
|
|
|
echo "---Setup Timezone to ${TZ}---"
|
|
echo "${TZ}" > /etc/timezone
|
|
echo "---Checking if UID: ${UID} matches user---"
|
|
usermod -o -u ${UID} ${USER}
|
|
echo "---Checking if GID: ${GID} matches user---"
|
|
groupmod -o -g ${GID} ${USER} > /dev/null 2>&1 ||:
|
|
usermod -g ${GID} ${USER}
|
|
echo "---Setting umask to ${UMASK}---"
|
|
umask ${UMASK}
|
|
|
|
echo "---Taking ownership of data...---"
|
|
chown -R ${UID}:${GID} /app /data
|
|
chmod +x /app/cqhttp
|
|
|
|
echo "Starting..."
|
|
su-exec ${USER} /app/cqhttp "$@"
|