joey
joey
Java中int数组创建后所有元素都默认是0,所以为0的base case就不需要再初始化了。 如果其他语言不是这样,还是需要代码初始化一下。
+1, I don't understand why png info is lost when saving preview image, just copy image from output directory to preview image directory, that won't happen.
之前苦寻几天都没有进展,昨天提了issue之后却自行找到了方案: alpine系统中crond和crontab都是对busybox的引用,要让crontab可以被非root用户执行,需要在Dockerfile中以root用户执行这2个命令:`chmod 4755 /bin/buxybox` 和 `chmod 4755 /usr/bin/crontab`。 然后,在docker运行时就可以非root用户来运行了(当然,需要用户对Dockerfile做修改(各种文件路径需要修改权限))。 总之,要用非root用户运行青龙并不简单,除非万不得已否则不推荐。 参考:https://unix.stackexchange.com/questions/605653/file-permissions-what-is-the-difference-between-755-and-4755
> @JoeyLearnsToCode debian 版本会有问题吗 还没试,明天尝试下
> @JoeyLearnsToCode debian 版本会有问题吗 debian版本相对alpine版本兼容非 root 用户更简单一些,没有crontab的奇怪问题,只需要在 Dockerfile 里以 root 用户给非root用户赋予一些目录的权限即可。 我是基于[debian 分支的 Dockerfile](https://github.com/whyour/qinglong/blob/debian/docker/Dockerfile)来进行修改的,发现两个问题: - 我感觉 debian 分支的 Dockerfile 中 QL_BRANCH 应该是 debian,用 develop 启动会有问题 - apt install 没有安装 cron,在我的尝试中会导致无法启动,添加后就可以了