Hey guys,
so i'm creating a script that automates the creation of a website & adding a ftp user & mysql user.
The problem i'm having is whenever i pass the password to the docker container, the password will never be fully in the config file.
example: https://gyazo.com/1f1ad56c59e98ce833e99ab75656440d
How can i make the script ignore all the $ symbols in the password to make it work?
Its probably not the best way to do it but heres what i got to create it
It ignores the first $, but not the other ones.
I hope that someone can help me out.
Thanks
so i'm creating a script that automates the creation of a website & adding a ftp user & mysql user.
The problem i'm having is whenever i pass the password to the docker container, the password will never be fully in the config file.
example: https://gyazo.com/1f1ad56c59e98ce833e99ab75656440d
How can i make the script ignore all the $ symbols in the password to make it work?
Its probably not the best way to do it but heres what i got to create it
Code
pass=$(openssl passwd -1 ${password})
docker exec ftp-server sh -c "echo ${user,,}:\\${pass} >> /conf/vsftpd/virtual_users"It ignores the first $, but not the other ones.
I hope that someone can help me out.
Thanks
![[Image: voZ00gr.gif]](https://i.imgur.com/voZ00gr.gif)

