mirror of
https://github.com/linuxserver/docker-xbackbone.git
synced 2026-02-05 12:48:01 +08:00
Merge pull request #33 from linuxserver/themes
Do persist static themes directory
This commit is contained in:
commit
d5e91d4e03
@ -2,7 +2,7 @@
|
||||
# shellcheck shell=bash
|
||||
|
||||
# create folders
|
||||
mkdir -p /config/www/xbackbone/{storage,logs}
|
||||
mkdir -p /config/www/xbackbone/{storage,logs,static}
|
||||
mkdir -p /config/www/xbackbone/resources/database
|
||||
|
||||
# create symlinks
|
||||
@ -38,6 +38,14 @@ if [[ ! -L "/app/www/public/resources/database" ]]; then
|
||||
ln -s "/config/www/xbackbone/resources/database" "/app/www/public/resources/database"
|
||||
fi
|
||||
|
||||
if [[ ! -L "/app/www/public/static/bootstrap" ]]; then
|
||||
if [[ ! -L "/app/www/public/static/bootstrap" ]]; then
|
||||
cp -nR "/app/www/public/static/bootstrap/" "/config/www/xbackbone/static/" 2> >(grep -v 'cp: not replacing')
|
||||
fi
|
||||
rm -rf "/app/www/public/static/bootstrap"
|
||||
ln -s "/config/www/xbackbone/static/bootstrap" "/app/www/public/static/bootstrap"
|
||||
fi
|
||||
|
||||
# Log migration messages
|
||||
if grep -q 'root /app/www/public;' "/config/nginx/site-confs/default.conf"; then
|
||||
for dir in /config/www/xbackbone/{app,bin,bootstrap,vendor}; do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user