mirror of
https://github.com/YunoHost-Apps/owncloud_ynh.git
synced 2024-09-03 19:56:25 +02:00
[fix] Protect everything but remote and well-known paths
This commit is contained in:
parent
c02d6c39dd
commit
077590862a
2 changed files with 4 additions and 3 deletions
|
@ -150,7 +150,8 @@ sudo chmod 640 "${DESTDIR}/config/config.php"
|
||||||
sudo chmod 755 /home/yunohost.app
|
sudo chmod 755 /home/yunohost.app
|
||||||
|
|
||||||
# Set SSOwat rules
|
# Set SSOwat rules
|
||||||
ynh_app_setting_set $app unprotected_uris "/"
|
ynh_app_setting_set "$app" unprotected_uris "/remote.php"
|
||||||
|
ynh_app_setting_set "$app" skipped_uris "/.well-known"
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
sudo service php5-fpm restart || true
|
sudo service php5-fpm restart || true
|
||||||
|
|
|
@ -136,8 +136,8 @@ sudo chmod 640 "${DESTDIR}/config/config.php"
|
||||||
sudo chmod 755 /home/yunohost.app
|
sudo chmod 755 /home/yunohost.app
|
||||||
|
|
||||||
# Set SSOwat rules
|
# Set SSOwat rules
|
||||||
ynh_app_setting_set $app unprotected_uris "/"
|
ynh_app_setting_set "$app" unprotected_uris "/remote.php"
|
||||||
ynh_app_setting_delete $app skipped_uris
|
ynh_app_setting_set "$app" skipped_uris "/.well-known"
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
sudo service php5-fpm restart || true
|
sudo service php5-fpm restart || true
|
||||||
|
|
Loading…
Add table
Reference in a new issue