Skip to content
GitLab
项目 群组 主题 代码片段
  • /
  • 帮助
    • 帮助
    • 支持
    • 社区论坛
    • 提交反馈
  • 登录
  • L large
  • 项目信息
    • 项目信息
    • 动态
    • 标记
    • 成员
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者统计
    • 分支图
    • 比较修订版本
  • 议题 21
    • 议题 21
    • 列表
    • 看板
    • 服务台
    • 里程碑
  • 合并请求 12
    • 合并请求 12
  • CI/CD
    • CI/CD
    • 流水线
    • 作业
    • 产物
    • 计划
  • 部署
    • 部署
    • 环境
    • 发布
  • 软件包与镜像库
    • 软件包与镜像库
    • 软件包库
    • 容器镜像库
    • Terraform 模块
    • 模型实验
  • 监控
    • 监控
    • 事件
  • 分析
    • 分析
    • 价值流
    • CI/CD
    • 仓库
  • Wiki
    • Wiki
  • 代码片段
    • 代码片段
  • 动态
  • 分支图
  • 创建新议题
  • 作业
  • 提交
  • 议题看板
收起侧边栏
  • 王权利
  • large
  • 议题
  • #796

Bash path (FreeBSD)

Created by: voidzero

Hi,

While I do realise that gitlab does not "support FreeBSD officially", I have set it up on my FreeBSD system yesterday and it works perfectly fine. The instructions in installation.md are fine and any FreeBSD user can probably decide how the commands should be for them. As a trivial aside I would prefer it if you would remove the sudo stuff and just prefix the commands with the proper username. But lest I digress back to the issue at hand.

I have only found one issue that, due to its nature, took forever to hunt down. After each push I kept seeing the following error:

remote: error: cannot run hooks/post-receive: No such file or directory

Finally I traced it down: it's because the files in lib/hooks contain the #!/bin/bash shebang, but FreeBSD hasn't this by default. Perhaps you could either set the shebang to #!/bin/sh if it is possible or else to '#!/usr/bin/env bash'

Now that I found this issue I couldn't help but smirk. Please consider this issue.

指派人
分配到
工时统计