Skip to content

Commit 22a49bc

Browse files
authored
Enhanced docs
1 parent 40c90a7 commit 22a49bc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/LocalHipanel.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ These files are thoroughly prepared and ready to use.
5656
It is only necessary to symlink them:
5757

5858
```sh
59-
ln -s .env.local .env
59+
ln -s .env.local .env
6060
ln -s core/docker-compose.yml.local docker-compose.yml
6161
```
6262

@@ -68,10 +68,11 @@ Find docker volume mountpoint with `inspect` command and then chmod it with `a+w
6868
Also chmod +x all path. Like this:
6969

7070
```sh
71-
docker volume inspect var-hiapi-demo.hipanel.com
72-
sudo chmod a+w /var/lib/docker/volumes/var-hiapi-demo.hipanel.com/_data
73-
sudo chmod a+x /var/lib/docker/volumes/var-hiapi-demo.hipanel.com
74-
sudo chmod a+x /var/lib/docker/volumes
71+
API_VAR_DIR=$(docker volume inspect var-hiapi-demo.hipanel.com -f '{{json .Mountpoint}}')
72+
sudo chmod a+w $API_VAR_DIR
73+
sudo chmod a+x $(dirname $API_VAR_DIR)
74+
sudo chmod a+x $(dirname $(dirname $API_VAR_DIR))
75+
unset API_VAR_DIR
7576
```
7677

7778
## Setup/Reset database

0 commit comments

Comments
 (0)