Skip to content

Commit

Permalink
Merge pull request #33 from linuxserver/themes
Browse files Browse the repository at this point in the history
Do persist static themes directory
  • Loading branch information
thespad authored Jan 16, 2024
2 parents d452e1e + 4066c3e commit d5e91d4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-xbackbone-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d5e91d4

Please sign in to comment.