mirror of
https://github.com/YunoHost-Apps/radicale_ynh.git
synced 2024-09-03 20:16:14 +02:00
Corrections chmod
This commit is contained in:
parent
96c763fa1e
commit
6352bf5462
4 changed files with 52 additions and 3 deletions
|
@ -19,5 +19,5 @@ En l'état, radicale ne fonctionne pas avec [Agendav](https://github.com/julienm
|
|||
|
||||
Le script installe les paquets *libjansson4* *libldap2-dev* *libmatheval1* *libpgm-5.1-0* *libpython-dev* *libsasl2-dev* *libsodium13* *libzmq3* *python-chardet-whl* *python-colorama-whl* *python-dev* *python-distlib-whl* *python-html5lib-whl* *python-pip-whl* *python-requests-whl* *python-setuptools-whl* *python-six-whl* *python-urllib3-whl* *python-virtualenv* *python3-virtualenv* *uwsgi* *uwsgi-core* *uwsgi-plugin-python* *virtualenv*.
|
||||
|
||||
Mise à jour du package:
|
||||
Mise à jour du package:
|
||||
sudo yunohost app upgrade -u https://github.com/maniackcrudelis/radicale_ynh radicale
|
||||
|
|
|
@ -34,3 +34,52 @@ Cela peux être fait simplement avec un navigateur, pour le voir apparaitre dans
|
|||
|
||||
Qu'est-ce que je voulais ajouter?
|
||||
Les règles de partage et de droits!
|
||||
|
||||
# This means all users starting with "admin" may read any collection
|
||||
[admin]
|
||||
user: ^admin.*$
|
||||
collection: .*
|
||||
permission: r
|
||||
|
||||
# This means all users may read and write any collection starting with public.
|
||||
# We do so by just not testing against the user string.
|
||||
[public]
|
||||
user: .*
|
||||
collection: ^public(/.+)?$
|
||||
permission: rw
|
||||
|
||||
# A little more complex: give read access to users from a domain for all
|
||||
# collections of all the users (ie. user@domain.tld can read domain/\*).
|
||||
# [domain-wide-access]
|
||||
# user: ^.+@(.+)\..+$
|
||||
# collection: ^{0}/.+$
|
||||
# permission: r
|
||||
|
||||
# Allow authenticated user to read all collections
|
||||
[allow-everyone-read]
|
||||
user: .+
|
||||
collection: .*
|
||||
permission: r
|
||||
|
||||
# Give write access to owners
|
||||
[owner-write]
|
||||
user: .+
|
||||
collection: ^%(login)s/.+$
|
||||
permission: w
|
||||
|
||||
# Partage public en lecture seule d'un agenda
|
||||
#[public for readonly]
|
||||
#user: .*
|
||||
#collection: ^utilisateur/nom_calendrier*
|
||||
#permission: r
|
||||
|
||||
# Partage public en lecture/écriture d'un agenda
|
||||
#[public for read/write]
|
||||
#user: .*
|
||||
#collection: ^utilisateur/nom_calendrier*
|
||||
#permission: rw
|
||||
|
||||
#[user1 can read and write user2/shared2]
|
||||
#user: ^user1$
|
||||
#collection: ^user2/shared2$
|
||||
#permission: rw
|
||||
|
|
|
@ -146,7 +146,7 @@ sudo chgrp radicale -R /var/log/$app
|
|||
sudo chmod g+w -R /var/log/$app
|
||||
# Droit par défaut des dossiers de collections utilisateurs, tels qu'ils sont créés par radicale.
|
||||
sudo chmod 666 -R $final_path/default_collections
|
||||
sudo chmod 777 $final_path/default_collections/USER
|
||||
sudo chmod 777 $final_path/default_collections $final_path/default_collections/USER
|
||||
|
||||
# Copy uwsgi config
|
||||
sudo cp ../conf/radicale.ini /etc/uwsgi/apps-available/
|
||||
|
|
|
@ -139,7 +139,7 @@ sudo chgrp radicale -R /var/log/$app
|
|||
sudo chmod g+w -R /var/log/$app
|
||||
# Droit par défaut des dossiers de collections utilisateurs, tels qu'ils sont créés par radicale.
|
||||
sudo chmod 666 -R $final_path/default_collections
|
||||
sudo chmod 777 default_collections/USER
|
||||
sudo chmod 777 $final_path/default_collections $final_path/default_collections/USER
|
||||
|
||||
if [ "$infcloud" = "1" ]
|
||||
then # /infcloud vient se rajouter à l'adresse de radicale pour y être associé sur le portail.
|
||||
|
|
Loading…
Reference in a new issue