Skip to content

Commit ab89448

Browse files
committed
fix: remove copy and deref
1 parent f6befee commit ab89448

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

nix/ext/wrappers/default.nix

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -242,23 +242,6 @@ buildEnv {
242242
243243
create_migration_sql_files() {
244244
245-
TEMP_DIR=$(mktemp -d)
246-
247-
# Copy all existing SQL and control files, dereferencing symlinks
248-
if [ -d "$out/share/postgresql/extension" ]; then
249-
cp -rL $out/share/postgresql/extension/* $TEMP_DIR/ 2>/dev/null || true
250-
# Need to remove from parent and recreate to avoid immutable symlinked structure
251-
chmod -R u+w $out/share/postgresql 2>/dev/null || true
252-
rm -rf $out/share/postgresql/extension
253-
fi
254-
255-
# Recreate the entire path as real directories
256-
mkdir -p $out/share/postgresql/extension
257-
258-
# Copy everything back
259-
if [ "$(ls -A $TEMP_DIR 2>/dev/null)" ]; then
260-
cp -r $TEMP_DIR/* $out/share/postgresql/extension/
261-
fi
262245
263246
PREVIOUS_VERSION=""
264247
while IFS= read -r i; do

0 commit comments

Comments
 (0)