A
A
Alexander Osadchy2020-10-23 13:17:21
Docker
Alexander Osadchy, 2020-10-23 13:17:21

How to make folder path universal?

Hello!

I have a local site initialization file init-site.sh , it has two lines:

docker cp C:/Users/delux/.ssh/id_rsa wordpressweb:/var/www/.ssh/
docker cp C:/Users/delux/.ssh/known_hosts wordpressweb:/var/www/.ssh/


How can I get rid of this:
C:/Users/delux/

So that when starting the project on another PC, you don’t have to rewrite these lines

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mureevms, 2020-10-23
@mureevms

%USERPROFILE%
In general, here is a list of Windows environment variables

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question