Skip to content

Commit ab8649b

Browse files
committed
Self-Hosted: fix archive/dist import steps
1 parent 65fa97c commit ab8649b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/self-hosted/kubernetes-migration-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ Please note that depending on the size of the `packagist_storage.tar.gz` file an
146146
it can take several minutes for this command to finish.
147147

148148
```
149-
kubectl cp packagist_storage.tar.gz ui:/tmp/packagist_storage.tar.gz
150-
kubectl exec ui /srv/manager/bin/console packagist:self-hosted:migrate-storage import /tmp/packagist_storage.tar.gz && rm /tmp/packagist_storage.tar.gz
151-
149+
export UI_POD=$(kubectl get pods --no-headers -o custom-columns=":metadata.name"|grep ui-)
150+
kubectl cp packagist_storage.tar.gz $UI_POD:/tmp/packagist_storage.tar.gz -c ui
151+
kubectl exec $UI_POD -c ui -- /bin/sh -c "/srv/manager/bin/console packagist:self-hosted:migrate-storage import /tmp/packagist_storage.tar.gz && rm /tmp/packagist_storage.tar.gz"
152152
```
153153

154154
### Start the Private Packagist application

0 commit comments

Comments
 (0)