Android build v1.1.32
This commit is contained in:
+31
-3
@@ -54,12 +54,18 @@ code updates to be a Git pull plus app restart.
|
||||
|
||||
Portainer is not required. Use TrueNAS **Apps > Discover > Install via YAML**.
|
||||
|
||||
Repository:
|
||||
Repository URL:
|
||||
|
||||
```text
|
||||
https://git.whoagland.com/phenom/i-want-to-heal.git
|
||||
```
|
||||
|
||||
Local Gitea repository path on the same TrueNAS host:
|
||||
|
||||
```text
|
||||
/mnt/.ix-apps/app_mounts/gitea/data/git/repositories/phenom/i-want-to-heal.git
|
||||
```
|
||||
|
||||
TrueNAS paths:
|
||||
|
||||
```text
|
||||
@@ -67,12 +73,15 @@ TrueNAS paths:
|
||||
/mnt/usbssds/apps/iwanttoheal/data
|
||||
```
|
||||
|
||||
Create the app directory and clone the repo:
|
||||
Create the app directory and clone the repo. When Gitea is hosted on the same
|
||||
TrueNAS box, prefer the local repository path instead of HTTPS. This avoids
|
||||
Git-over-HTTPS TLS failures while downloading large pack files.
|
||||
|
||||
```sh
|
||||
sudo mkdir -p /mnt/usbssds/apps/iwanttoheal
|
||||
cd /mnt/usbssds/apps/iwanttoheal
|
||||
sudo git clone https://git.whoagland.com/phenom/i-want-to-heal.git app
|
||||
sudo git config --global --add safe.directory /mnt/.ix-apps/app_mounts/gitea/data/git/repositories/phenom/i-want-to-heal.git
|
||||
sudo git clone /mnt/.ix-apps/app_mounts/gitea/data/git/repositories/phenom/i-want-to-heal.git app
|
||||
```
|
||||
|
||||
Because the clone was run with `sudo`, give the normal TrueNAS user ownership:
|
||||
@@ -101,6 +110,25 @@ cd /mnt/usbssds/apps/iwanttoheal/app
|
||||
git pull
|
||||
```
|
||||
|
||||
If setting up a different app hosted by the same Gitea instance, first find its
|
||||
bare repository path:
|
||||
|
||||
```sh
|
||||
sudo find /mnt -type d -name "REPO-NAME.git" -prune -print 2>/dev/null
|
||||
```
|
||||
|
||||
Then substitute that path in the `safe.directory` and `git clone` commands:
|
||||
|
||||
```sh
|
||||
sudo git config --global --add safe.directory /mnt/.ix-apps/app_mounts/gitea/data/git/repositories/OWNER/REPO-NAME.git
|
||||
sudo git clone /mnt/.ix-apps/app_mounts/gitea/data/git/repositories/OWNER/REPO-NAME.git app
|
||||
sudo chown -R truenas_admin:truenas_admin app
|
||||
```
|
||||
|
||||
`safe.directory` is a Git trust exception for the Gitea-owned bare repository.
|
||||
It is needed because Gitea's repository files are owned by the app/container
|
||||
user, not by `truenas_admin`.
|
||||
|
||||
If Git fails with `chmod ... Operation not permitted`, do not use a media or SMB
|
||||
dataset for the repo. Git needs normal file locking and chmod behavior. Create or
|
||||
use a dedicated apps dataset and clone under `/mnt/usbssds/apps/...`.
|
||||
|
||||
Reference in New Issue
Block a user