Update README.md
This commit is contained in:
parent
dd37f393e3
commit
a5ae173ab8
|
@ -1,9 +1,4 @@
|
||||||
# seafile-compose
|
# Seafile
|
||||||
Créée le dimanche 17 janvier 2021
|
|
||||||
|
|
||||||
Procédures
|
|
||||||
----------
|
|
||||||
|
|
||||||
## Première installation
|
## Première installation
|
||||||
### soucis d'URL
|
### soucis d'URL
|
||||||
À la première connexion en admin, changer les URL (https) dans l'interface d'administration.
|
À la première connexion en admin, changer les URL (https) dans l'interface d'administration.
|
||||||
|
@ -23,3 +18,35 @@ export GARBAYE_SEAFILE_MYSQL_ROOT_PASSWORD=XXXXXXXXXXXXXXXX
|
||||||
./20_enable.sh
|
./20_enable.sh
|
||||||
./30_start.sh
|
./30_start.sh
|
||||||
```
|
```
|
||||||
|
## Restauration
|
||||||
|
À partir d'une copie des home utilisateur (volumes podman compris) dans `/backup` :
|
||||||
|
* En tant qu'utilisateur `podman-seafile` :
|
||||||
|
```
|
||||||
|
podman volume create podman-seafile_seafile-data
|
||||||
|
podman volume create podman-seafile_seafile-db
|
||||||
|
```
|
||||||
|
* En tant que `root` :
|
||||||
|
```
|
||||||
|
# La restauration par "mv" nécessite une correction du contexte SELinux. Privilégier "rsync" si possible.
|
||||||
|
mv /backup/home/podman-seafile/.local/share/containers/storage/volumes/podman-seafile_seafile-data/_data/* ~podman-seafile/.local/share/containers/storage/volumes/podman-seafile_seafile-data/_data/
|
||||||
|
mv /backup/home/podman-seafile/.local/share/containers/storage/volumes/podman-seafile_seafile-db/_data/* ~podman-seafile/.local/share/containers/storage/volumes/podman-seafile_seafile-db/_data/
|
||||||
|
|
||||||
|
# le volume seafile-data est déjà root:root (ce qu'on veut). Pas besoin de chown.
|
||||||
|
chown -R podman-seafile:podman-users ~podman-seafile/.local/share/containers/storage/volumes/podman-seafile_seafile-db/_data
|
||||||
|
|
||||||
|
```
|
||||||
|
* En tant qu'utilisateur `podman-seafile` :
|
||||||
|
```
|
||||||
|
podman unshare chown -R 999:999 ~/.local/share/containers/storage/volumes/podman-seafile_seafile-db/_data
|
||||||
|
chown -R podman-seafile:podman-users /home/podman-seafile/.local/share/containers/storage/volumes/podman-seafile_seafile-data/_data/logs/var-log
|
||||||
|
|
||||||
|
podman unshare chown -R 0:43 ~/.local/share/containers/storage/volumes/podman-seafile_seafile-data/_data/logs/var-log/btmp*
|
||||||
|
podman unshare chown -R 0:43 ~/.local/share/containers/storage/volumes/podman-seafile_seafile-data/_data/logs/var-log/wtmp*
|
||||||
|
podman unshare chown -R 0:43 ~/.local/share/containers/storage/volumes/podman-seafile_seafile-data/_data/logs/var-log/lastlog
|
||||||
|
podman unshare chown -R 0:4 ~/.local/share/containers/storage/volumes/podman-seafile_seafile-data/_data/logs/var-log/apt/term.log*
|
||||||
|
podman unshare chown 0:4 ~/.local/share/containers/storage/volumes/podman-seafile_seafile-data/_data/logs/var-log/nginx
|
||||||
|
podman unshare chown 33:4 ~/.local/share/containers/storage/volumes/podman-seafile_seafile-data/_data/logs/var-log/nginx/*
|
||||||
|
podman unshare restorecon -R ~/.local/share/containers/storage/volumes/podman-seafile_seafile-db/_data
|
||||||
|
podman unshare restorecon -R ~/.local/share/containers/storage/volumes/podman-seafile_seafile-data/_data
|
||||||
|
```
|
||||||
|
* Exporter les variables d'environnement et procéder à l'installation normale (10_install.sh)
|
||||||
|
|
Loading…
Reference in a new issue