mirror of
https://github.com/TeamPiped/Piped-Docker.git
synced 2024-08-14 23:56:53 +00:00
Added If statements to entrypoint script
This commit is contained in:
parent
e165dd0805
commit
8e0413b126
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue