1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_mypads_ynh.git synced 2024-09-03 18:36:09 +02:00

yunohost admin match regex

This commit is contained in:
Maniack Crudelis 2016-08-10 17:57:51 +02:00
parent aa01dd7d62
commit a651f1ac23

View file

@ -159,7 +159,7 @@ then
domain_regex=$(echo "$domain" | sed 's@-@.@g')
CHECK_VAR "$domain_regex" "domain_regex empty"
sudo yunohost app setting $app skipped_regex -v "$domain_regex"
sudo yunohost app setting $app protected_regex -v "$domain_regex.*admin" # Protège l'accès de l'administration d'etherpad et de mypads.
sudo yunohost app setting $app protected_regex -v "$domain_regex/admin","$domain_regex/mypads/%?/admin" # Protège l'accès de l'administration d'etherpad et de mypads.
fi
sudo yunohost app setting $app path -v /mypads # /mypads vient se rajouter à l'adresse de etherpad pour y être associé sur le portail.