「Gitea」:修訂間差異

出自Gea-Suan Lin's Wiki
跳至導覽 跳至搜尋
本頁面具有訪問限制。如果您看見此訊息,這代表您沒有訪問本頁面的權限。
無編輯摘要
行 7: 行 7:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git
sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git
</syntaxhighlight>
再來建立對應的目錄結構:
<syntaxhighlight lang="bash">
sudo mkdir -p /var/lib/gitea/{custom,data,log}; sudo chown -R git:git /var/lib/gitea; sudo chmod -R 750 /var/lib/gitea; sudo mkdir /etc/gitea; sudo chown root:git /etc/gitea; sudo chmod 750 /etc/gitea
</syntaxhighlight>
</syntaxhighlight>



於 2023年8月13日 (日) 19:17 的修訂

Gitea一套輕量級的Git託管軟體。

安裝

先建立使用者帳號:

sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git

再來建立對應的目錄結構:

sudo mkdir -p /var/lib/gitea/{custom,data,log}; sudo chown -R git:git /var/lib/gitea; sudo chmod -R 750 /var/lib/gitea; sudo mkdir /etc/gitea; sudo chown root:git /etc/gitea; sudo chmod 750 /etc/gitea

外部連結

官方網站 (英文)