Added If statements to entrypoint script

This commit is contained in:
Bento Silveira 2023-07-23 00:23:45 -03:00 committed by Nerdeiro da Silva
parent e165dd0805
commit 8e0413b126
No known key found for this signature in database
GPG key ID: E50EFBA12C1ED3CD

View file

@ -1,4 +1,9 @@
#!/bin/sh #!/bin/sh
if [ -d "/usr/share/nginx/html/assets" ]; then
sed -i 's/pipedapi.kavin.rocks/'$BACKEND_HOSTNAME'/g' /usr/share/nginx/html/assets/* sed -i 's/pipedapi.kavin.rocks/'$BACKEND_HOSTNAME'/g' /usr/share/nginx/html/assets/*
fi
if [ -f "/etc/nginx/nginx.conf" ] ; then
sed -i '/user/s/nginx/root/' /etc/nginx/nginx.conf sed -i '/user/s/nginx/root/' /etc/nginx/nginx.conf
fi