Merge pull request #20 from linuxserver/fix-server-js

This commit is contained in:
Adam 2023-04-24 19:45:26 +01:00 committed by GitHub
commit 667cd0f676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ app_setup_block: |
# changelog
changelogs:
- { date: "21.04.23:", desc: "Fix for upstream changes. Content now needs to be placed in /config/content/pages." }
- { date: "21.04.23:", desc: "Fix for upstream changes." }
- { date: "18.01.23:", desc: "Rebase to Alpine 3.17, migrate to s6v3." }
- { date: "10.08.22:", desc: "Rebasing to alpine 3.15." }
- { date: "23.01.21:", desc: "Rebasing to alpine 3.13." }

View File

@ -10,8 +10,7 @@ var path = require('path');
// Themes from NPM
// use "dist" as the theme name for modules (for now)
var theme_dir = path.join(
__dirname,
'..',
'/app/raneto',
'node_modules',
'@raneto/theme-default'
);

View File

@ -23,8 +23,9 @@ if [[ ! -f /config/config.default.js ]]; then
cp /defaults/config.default.js /config/config.default.js
fi
if [[ ! -f /app/raneto/server.js ]]; then
cp /defaults/server.js /app/raneto/server.js
if [[ -f "/defaults/server.js" ]]; then
rm -rf "/app/raneto/server.js"
mv "/defaults/server.js" "/app/raneto/server.js"
fi
# permissions