forked from platypush/platypush
[CI/CD] Always copy new apt repo root.
This commit is contained in:
parent
581fe6101f
commit
6673bb4c19
1 changed files with 3 additions and 6 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue