mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
add-sso
This commit is contained in:
parent
1c3f332b79
commit
21216e1cab
3 changed files with 5 additions and 5 deletions
|
@ -19,7 +19,7 @@
|
|||
#Last version
|
||||
upgrade=1 from_commit=79c6c4ad03f62d2ed4f4180ac6b7dac1c117a62a
|
||||
#v0.6.6
|
||||
# upgrade=1 from_commit=11f5b96df7d8850beff47f9904745fa53a6f7ed9
|
||||
# upgrade=0 from_commit=11f5b96df7d8850beff47f9904745fa53a6f7ed9
|
||||
backup_restore=1
|
||||
multi_instance=1
|
||||
port_already_use=1 (8083)
|
||||
|
|
|
@ -5,8 +5,8 @@ source /usr/share/yunohost/helpers
|
|||
app=$1
|
||||
users=$2 # Tous les utilisateurs autorisés sur l'app. Séparés par des virgules.
|
||||
|
||||
if [ echo "$users" | grep visitors ]; then
|
||||
if [ tail /etc/yunohost/apps/$app/conf/nginx.conf | grep " proxy_set_header X-Remote-User" ]; then
|
||||
if echo "$users" | grep visitors ; then
|
||||
if tail /etc/yunohost/apps/$app/conf/nginx.conf | grep " proxy_set_header X-Remote-User"; then
|
||||
#app is made public
|
||||
ynh_replace_string " proxy_set_header X-Remote-User" "# proxy_set_header X-Remote-User" /etc/yunohost/apps/$app/conf/nginx.conf
|
||||
ynh_add_nginx_config
|
||||
|
|
|
@ -5,8 +5,8 @@ source /usr/share/yunohost/helpers
|
|||
app=$1
|
||||
users=$2 # Tous les utilisateurs autorisés sur l'app. Séparés par des virgules.
|
||||
|
||||
if [ ! echo "$users" | grep visitors ]; then
|
||||
if [ tail /etc/yunohost/apps/$app/conf/nginx.conf | grep "# proxy_set_header X-Remote-User" ]; then
|
||||
if ! echo "$users" | grep visitors; then
|
||||
if tail /etc/yunohost/apps/$app/conf/nginx.conf | grep "# proxy_set_header X-Remote-User" ; then
|
||||
#app is made public
|
||||
ynh_replace_string "# proxy_set_header X-Remote-User" " proxy_set_header X-Remote-User" /etc/yunohost/apps/$app/conf/nginx.conf
|
||||
ynh_add_nginx_config
|
||||
|
|
Loading…
Add table
Reference in a new issue