Does not override nginx config on update.
This commit is contained in:
parent
44f22e5d16
commit
53582abdaa
|
@ -23,15 +23,14 @@ case "$1" in
|
||||||
|
|
||||||
# nginx conf
|
# nginx conf
|
||||||
. /etc/default/jitsi-videobridge
|
. /etc/default/jitsi-videobridge
|
||||||
cp /usr/share/doc/jitsi-meet/jitsi-meet.example /etc/nginx/sites-available/$JVB_HOSTNAME.conf
|
if [ ! -f /etc/nginx/sites-available/$JVB_HOSTNAME.conf ]; then
|
||||||
if [ ! -f /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf ]; then
|
cp /usr/share/doc/jitsi-meet/jitsi-meet.example /etc/nginx/sites-available/$JVB_HOSTNAME.conf
|
||||||
ln -s /etc/nginx/sites-available/$JVB_HOSTNAME.conf /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf
|
if [ ! -f /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf ]; then
|
||||||
fi
|
ln -s /etc/nginx/sites-available/$JVB_HOSTNAME.conf /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf
|
||||||
sed -i "s/jitsi-meet.example.com/$JVB_HOSTNAME/g" /etc/nginx/sites-available/$JVB_HOSTNAME.conf
|
fi
|
||||||
# FIXME do we need the default?
|
sed -i "s/jitsi-meet.example.com/$JVB_HOSTNAME/g" /etc/nginx/sites-available/$JVB_HOSTNAME.conf
|
||||||
if [ ! -f /etc/nginx/sites-enabled/default ]; then
|
|
||||||
ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if grep "# server_names_hash_bucket_size 64" /etc/nginx/nginx.conf > /dev/null; then
|
if grep "# server_names_hash_bucket_size 64" /etc/nginx/nginx.conf > /dev/null; then
|
||||||
sed -i "s/#\ server_names_hash_bucket_size\ 64/\ server_names_hash_bucket_size\ 64/" /etc/nginx/nginx.conf
|
sed -i "s/#\ server_names_hash_bucket_size\ 64/\ server_names_hash_bucket_size\ 64/" /etc/nginx/nginx.conf
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue