[CI/CD] Always copy new apt repo root.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Fabio Manganiello 2023-12-26 05:53:54 +01:00
parent 581fe6101f
commit 6673bb4c19
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 3 additions and 6 deletions

View File

@ -721,12 +721,9 @@ steps:
- echo "-- Updating the apt repo root"
- export OLD_APT_ROOT="$REPOS_ROOT/oldapt"
- |
if [ ! -d "$OLD_APT_ROOT" ]; then
mv "$APT_ROOT" "$OLD_APT_ROOT"
mv "$TMP_APT_ROOT" "$APT_ROOT"
rm -rf "$OLD_APT_ROOT"
fi
- rm -rf "$OLD_APT_ROOT"
- mv "$APT_ROOT" "$OLD_APT_ROOT"
- mv "$TMP_APT_ROOT" "$APT_ROOT"
- chmod -R a+r "$APT_ROOT"
- chmod a+x "$APT_ROOT"