1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00
This commit is contained in:
Krakinou 2022-04-16 19:33:59 +02:00
parent 1c3f332b79
commit 21216e1cab
3 changed files with 5 additions and 5 deletions

View file

@ -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)

View file

@ -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

View file

@ -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