Merge pull request #13 from linuxserver/fix-post-setup

Fix post-setup
This commit is contained in:
Eric Nemchik 2022-08-23 06:51:28 -05:00 committed by GitHub
commit 7870ba360c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
## Version 2022/08/20 - Changelog: https://github.com/linuxserver/docker-xbackbone/commits/main/root/defaults/nginx/site-confs/default.conf.sample
## Version 2022/08/23 - Changelog: https://github.com/linuxserver/docker-xbackbone/commits/main/root/defaults/nginx/site-confs/default.conf.sample
server {
listen 80 default_server;
@ -21,7 +21,7 @@ server {
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
try_files $uri $uri/ /index.html /index.php?$args =404;
try_files $uri $uri/ /index.html /index.php?$args;
}
location ~ ^(.+\.php)(.*)$ {

View File

@ -8,6 +8,11 @@ if [ ! -e "/config/www/xbackbone/index.php" ]; then
cp -R /app/xbackbone/* /config/www/xbackbone
fi
# fix breaking location change from PR5
if [[ $(grep -c "/index.php?\$args =404;" /config/nginx/site-confs/default.conf) -eq 0 ]]; then
sed -i $'s|/index.php?\$args =404;|/index.php?\$args;|g' /config/nginx/site-confs/default.conf
fi
# permissions
chown -R abc:abc \
/config