I'm in a project where I need to create a script that automates the installation in different.
The code:
#!/bin/bash
cd /home/luis/public_html/1/wordpress/
read to_print
cp -R wp-signup.php wp-login.php wp-config-sample.php license.txt xmlrpc.php wp-settings.php wp-cron.php wp-load.php wp-activate.php wp-comments-post.php licencia.txt wp-trackback.php wp-links-opml.php wp-mail.php index.php readme.html wp-blog-header.php /home/luis/public_html/$to_print/
cp -R /home/luis/public_html/1/wordpress/wp-admin/ /home/luis/public_html/1/wordpress/wp-includes/ /home/luis/public_html/1/wordpress/wp-content/ /home/luis/public_html/$to_print/
What I would like is to be able to take the variable from a CSV or similar, instead of writing it. For now what it does is copy Wordpress locally and take it to the domain folder but I have to define the domain in the script.
Please note that I am learning!