Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.92 KB | None | 0 0
  1. [code]
  2. echo "Gathering pertinent information...."
  3. echo "Please enter a password for the 'gvsms' MySQL User and press enter:"
  4. read installdbpass
  5. mysql -uroot -p -Be "SET PASSWORD FOR 'gvsms'@'localhost' = PASSWORD( '$installdbpass' )"
  6. echo "Database Password Set! Remember it!"
  7. echo " "
  8. echo "Please enter the email address that is associated with your GVoice account:"
  9. read gvemail
  10. echo " "
  11. echo "Please enter the password that is associated with your GVoice account:"
  12. read gvpass
  13. echo " "
  14. echo "Setting values..."
  15. cd /var/www/html/gvsms
  16. echo "<?php" >> config.inc.php
  17. echo "$username = 'gvsms';" >> config.inc.php
  18. echo "$password = '$installdbpass';" >> config.inc.php
  19. echo "$database = 'gvsms';" >> config.inc.php
  20. echo "$server = 'localhost';" >> config.inc.php
  21. echo "$gvoiceuser = '$gvemail';" >> config.inc.php
  22. echo "$gvoicepass = '$gvpass';" >> config.inc.php
  23. echo "?>" >> config.inc.php
  24. echo "Values set!"
  25. [/code]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement