Skip to content

Commit c536364

Browse files
author
Evan Champion
committed
Fix package.sh to use docker/ subdirectory for Dockerfile compatibility
1 parent ad75366 commit c536364

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

docker/package.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,15 @@ cp ../Jellyfin.Plugin.Pgsql/Migrations/JellyfinDbContextModelSnapshot.cs ./Jelly
4444
# Set permissions on directories
4545
chmod 755 Jellyfin.Plugin.Pgsql Jellyfin.Plugin.Pgsql/Configuration Jellyfin.Plugin.Pgsql/Database Jellyfin.Plugin.Pgsql/Migrations
4646

47+
# Create docker subdirectory for files Dockerfile expects there
48+
mkdir -p docker
49+
cp entrypoint.sh docker/
50+
cp database.xml docker/
51+
cp jellyfindb.load docker/
52+
cp jellyfin.PgsqlMigrator.dll docker/ 2>/dev/null || true
53+
4754
# Set permissions on files
48-
chmod 644 Dockerfile entrypoint.sh database.xml jellyfin.ruleset Jellyfin.Plugin.Pgsql.sln build.yaml \
55+
chmod 644 Dockerfile docker/entrypoint.sh docker/database.xml jellyfin.ruleset Jellyfin.Plugin.Pgsql.sln build.yaml \
4956
Jellyfin.Plugin.Pgsql/Jellyfin.Plugin.Pgsql.csproj \
5057
Jellyfin.Plugin.Pgsql/Plugin.cs \
5158
Jellyfin.Plugin.Pgsql/Configuration/PluginConfiguration.cs \
@@ -64,8 +71,7 @@ chmod 644 Dockerfile entrypoint.sh database.xml jellyfin.ruleset Jellyfin.Plugin
6471
tar -czf "$PACKAGE_NAME" \
6572
--uid=0 --gid=0 \
6673
Dockerfile \
67-
entrypoint.sh \
68-
database.xml \
74+
docker/ \
6975
jellyfin.ruleset \
7076
Jellyfin.Plugin.Pgsql.sln \
7177
build.yaml \
@@ -74,6 +80,7 @@ tar -czf "$PACKAGE_NAME" \
7480
# Clean up temporary files
7581
rm jellyfin.ruleset Jellyfin.Plugin.Pgsql.sln build.yaml
7682
rm -rf Jellyfin.Plugin.Pgsql/
83+
rm -rf docker/
7784

7885
# Show package size
7986
SIZE=$(ls -lh "$PACKAGE_NAME" | awk '{print $5}')

0 commit comments

Comments
 (0)