I use the following bash script to run my local webserver on Fedora 29. After executing the script root password needs to be typed two times.
#!/bin/bash
systemctl enable httpd.service
systemctl start httpd.service
systemctl start mariadb.service
How can I save the root password inside above script and pass the same while prompted for?
Thanks in advance for your co-operation.