Browse Source

added fix for permissions

Toastie 1 year ago
parent
commit
bd4be1f839
1 changed files with 16 additions and 1 deletions
  1. 16 1
      README.md

+ 16 - 1
README.md

@@ -64,7 +64,22 @@ ejabber runs under user `ejabberd` with uid/guid `9000`. All data is stored in `
 
 ## Installation & Configuration
 
-1. Clone the repo and the [reverse proxy and Let's Encrypt companion)](https://git.in-ulm.de/ulpeters/reverse-proxy) to /opt/docker.
+1. Clone the repo and the [reverse proxy and Let's Encrypt companion)](https://git.in-ulm.de/ulpeters/reverse-proxy) to /opt/docker and prepare data folders with proper permissions.
+    ```
+    inst_dir=/opt/docker/ejabberd
+    mkdir -p $inst_dir/data/database \
+             $inst_dir/data/backup \
+             $inst_dir/data/upload \
+             $inst_dir/data/www \
+    && chown -R 9000:9000 $inst_dir/data/
+    
+    mkdir -p $inst_dir/data/biboumi/database
+    chown -R 1000:1000 $inst_dir/data/biboumi/
+    ```
+
+
+
+
 
 2. Copy `.env.template` to `.env` and setup your hostname and ip. A fixed ip is necessary to stun/turn to work.