mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Compare commits
3 commits
dev
...
debian/11.
Author | SHA1 | Date | |
---|---|---|---|
|
ce40408f1b | ||
|
980df4f528 | ||
|
5dd237b64c |
3 changed files with 13 additions and 0 deletions
7
debian/changelog
vendored
7
debian/changelog
vendored
|
@ -1,3 +1,10 @@
|
||||||
|
yunohost (11.0.11) 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 (11.0.10.2) stable; urgency=low
|
yunohost (11.0.10.2) stable; urgency=low
|
||||||
|
|
||||||
- Add another trick to autorestart yunohost-api at the end of the upgrade when ran from the api itself... (6f640c08)
|
- Add another trick to autorestart yunohost-api at the end of the upgrade when ran from the api itself... (6f640c08)
|
||||||
|
|
1
debian/postinst
vendored
1
debian/postinst
vendored
|
@ -20,6 +20,7 @@ do_configure() {
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Regenerating configuration, this might take a while..."
|
echo "Regenerating configuration, this might take a while..."
|
||||||
|
yunohost app ssowatconf
|
||||||
yunohost tools regen-conf --output-as none
|
yunohost tools regen-conf --output-as none
|
||||||
|
|
||||||
echo "Launching migrations..."
|
echo "Launching migrations..."
|
||||||
|
|
|
@ -1343,6 +1343,8 @@ def app_ssowatconf():
|
||||||
}
|
}
|
||||||
redirected_urls = {}
|
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():
|
for app in _installed_apps():
|
||||||
|
|
||||||
app_settings = read_yaml(APPS_SETTING_PATH + app + "/settings.yml") or {}
|
app_settings = read_yaml(APPS_SETTING_PATH + app + "/settings.yml") or {}
|
||||||
|
@ -1381,7 +1383,10 @@ def app_ssowatconf():
|
||||||
if not uris:
|
if not uris:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
app_id = perm_name.split(".")[0]
|
||||||
|
|
||||||
permissions[perm_name] = {
|
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"],
|
"users": perm_info["corresponding_users"],
|
||||||
"label": perm_info["label"],
|
"label": perm_info["label"],
|
||||||
"show_tile": perm_info["show_tile"]
|
"show_tile": perm_info["show_tile"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue