Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
reposync
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
linuxsupport
cronjobs
reposync
Commits
8630d41d
Commit
8630d41d
authored
2 years ago
by
Marta Vila Fernandes
Browse files
Options
Downloads
Patches
Plain Diff
Remove uuid files with certificates
parent
6115ed7d
No related branches found
No related tags found
1 merge request
!227
Remove uuid files with certificates
Pipeline
#4813107
passed
2 years ago
Stage: prepare
Stage: build
Stage: deploy_test
Stage: deploy
Stage: cleanup
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
reposync/runreposync.sh
+5
-1
5 additions, 1 deletion
reposync/runreposync.sh
with
5 additions
and
1 deletion
reposync/runreposync.sh
+
5
−
1
View file @
8630d41d
...
...
@@ -172,7 +172,7 @@ EOF
if
[
-f
"
$MODULEFILE
"
]
;
then
/usr/bin/modifyrepo
--mdtype
=
modules
$MODULEFILE
$REPOPATH
/repodata
NEWMODULEFILE
=
$(
sed
'/yaml.gz/!d; s/.*repodata\/\(.*\)".*/\1/'
${
REPOPATH
}
/repodata/repomd.xml
)
/usr/bin/find
${
REPOPATH
}
-name
'*module*.yaml*'
-not
-
name
$NEWMODULEFILE
-printf
"removed '%f'
\n
"
-delete
/usr/bin/find
${
REPOPATH
}
-name
'*module*.yaml*'
-not
-
path
${
REPOPATH
}
/repodata/
$NEWMODULEFILE
-printf
"removed '%f'
\n
"
-delete
fi
fi
# end of if [[ $RUN_CREATEREPO -eq 1 ]]
...
...
@@ -221,6 +221,10 @@ cat << EOF | log > $OUTPUT
"changes": [
${
LIST
}
]
EOF
# Remove uuid files with certificates
echo
/usr/bin/find
${
REPOPATH
}
-regextype
posix-extended
-regex
'^.*/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'
-not
-name
'*.rpm'
-printf
"removed '%f'
\n
"
-delete
/usr/bin/find
${
REPOPATH
}
-regextype
posix-extended
-regex
'^.*/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'
-not
-name
'*.rpm'
-printf
"removed '%f'
\n
"
-delete
# Clean up after yourself, and release your trap
rm
-f
"
$LOCKFILE
"
trap
- INT TERM EXIT
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment