I am trying to write a script that automatically makes a new website on my server.
one of the steps is to go to this link and copy the salts into my wp-config.php file:
https://api.wordpress.org/secret-key/1.1/salt/
I'm new to bash script and hoping this would be easy to do.
I'm not sure if I need to save it as a text first, but ultimately I need to replace this part in my wp-config.php:
define( 'AUTH_KEY', 'put your unique phrase here' );
define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'NONCE_KEY', 'put your unique phrase here' );
define( 'AUTH_SALT', 'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
define( 'NONCE_SALT', 'put your unique phrase here' );
with the results from that link.