packaging: handle change in location of JSON schema for release
@@ -183,19 +183,9 @@ fi
# Sign YUM repo meta-data
find "/var/www/apt.fluentbit.io" -name repomd.xml -exec gpg --detach-sign --armor --yes -u "releases@fluentbit.io" {} \;
-# Handle the JSON schema by copying in the new versions (if they exist) and then updating the symlinks that point at the latest.
-if compgen -G "$SOURCE_DIR/fluent-bit-schema*.json" > /dev/null; then
+# Handle the JSON schema by copying in the new versions (if they exist).
echo "Updating JSON schema"
- cp -vf "$SOURCE_DIR"/fluent-bit-schema*.json /var/www/releases.fluentbit.io/releases/"$MAJOR_VERSION/"
-
- # Simpler than 'ln --relative --target-directory=/var/www/releases.fluentbit.io/releases/"$MAJOR_VERSION"'
- pushd /var/www/releases.fluentbit.io/releases/"$MAJOR_VERSION"
- ln -sf "fluent-bit-schema-$VERSION.json" fluent-bit-schema.json
- ln -sf "fluent-bit-schema-pretty-$VERSION.json" fluent-bit-schema-pretty.json
- popd
-else
- echo "Missing JSON schema"
-fi
+find "$SOURCE_DIR/" -iname "fluent-bit-schema*$VERSION*.json" -exec cp -vf "{}" /var/www/releases.fluentbit.io/releases/"$MAJOR_VERSION/" \;
# Windows - we do want word splitting and ensure some files exist
if compgen -G "$SOURCE_DIR/windows/*$VERSION*" > /dev/null; then
