mirror of
https://git.myvelabs.com/novnc/archlinux.git
synced 2025-12-17 21:36:20 +00:00
Update base/app/init.d/10-nginx.sh
This commit is contained in:
parent
7bdd0a78bc
commit
e5d81b0f05
1 changed files with 2 additions and 2 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Reformat path
|
# Reformat proxy path
|
||||||
if [[ ${MYVNC_PROXYPATH} == "/" ]]
|
if [[ ${MYVNC_PROXYPATH} == "/" ]]
|
||||||
then
|
then
|
||||||
unset _MYVNC_PROXYPATH
|
unset _MYVNC_PROXYPATH
|
||||||
elif [ ${MYVNC_PROXYPATH} ]
|
elif [ ${MYVNC_PROXYPATH} ]
|
||||||
then
|
then
|
||||||
_MYVNC_PROXYPATH=$(echo ${MYVNC_PROXYPATH%/} | sed "s|^.*/||;s|^|/|")
|
_MYVNC_PROXYPATH=$(echo ${MYVNC_PROXYPATH} | sed "s|^/*||g;s|/*$||g;s|/*/|/|g;s|^|/|")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add novnc virtual proxy conf
|
# Add novnc virtual proxy conf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue