Compare commits

...

3 commits

Author SHA1 Message Date
Alexandre Aubin
be40a53fb6 Update changelog for 4.4.3 2023-01-10 14:18:11 +01:00
Alexandre Aubin
17f255dac5 debian: regen ssowatconf during package upgrade 2023-01-10 14:16:36 +01:00
Alexandre Aubin
a689142eb7 ssowat: add use_remote_user_var_in_nginx_conf flag on permission 2023-01-10 14:16:36 +01:00
3 changed files with 13 additions and 0 deletions

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
yunohost (4.4.3) stable; urgency=low
- ssowat: add use_remote_user_var_in_nginx_conf flag on permission (5dd237b6)
- debian: regen ssowatconf during package upgrade (980df4f5)
-- Alexandre Aubin <alex.aubin@mailoo.org> Tue, 10 Jan 2023 13:53:29 +0100
yunohost (4.4.2.9) stable; urgency=low
- apt helper: fix edge case with equivs package being flagged hold because of buster->bullseye migration (b306df2c)

1
debian/postinst vendored
View file

@ -24,6 +24,7 @@ do_configure() {
fi
else
echo "Regenerating configuration, this might take a while..."
yunohost app ssowatconf
yunohost tools regen-conf --output-as none
echo "Launching migrations..."

View file

@ -1411,6 +1411,8 @@ def app_ssowatconf():
}
redirected_urls = {}
apps_using_remote_user_var_in_nginx = check_output('grep -nri \'$remote_user\' /etc/yunohost/apps/*/conf/*nginx*conf | awk -F/ \'{print $5}\' || true').strip().split("\n")
for app in _installed_apps():
app_settings = read_yaml(APPS_SETTING_PATH + app + "/settings.yml")
@ -1432,7 +1434,10 @@ def app_ssowatconf():
if not uris:
continue
app_id = perm_name.split(".")[0]
permissions[perm_name] = {
"use_remote_user_var_in_nginx_conf": app_id in apps_using_remote_user_var_in_nginx,
"users": perm_info["corresponding_users"],
"label": perm_info["label"],
"show_tile": perm_info["show_tile"]