#!/bin/bash echo "Please key for root. This is where it will move files to local and system" su - root -c "ln -s /home/$USER/java17/*/bin/* /usr/local/bin; cp /home/$USER/mongo/*/bin/* /usr/local/bin; cp /home/$USER/mongod.service /usr/lib/systemd/system; cp /home/$USER/elx-ambience.service /usr/lib/systemd/system;" java --version sleep 5 mongod --version echo "Please key for root. This is where it will start services" su - root -c "systemctl start mongod.service; systemctl start elx-ambience.service;" sleep 10 systemctl -all | grep mongo echo "Please key for root. This is enable services after reboot" su - root -c "systemctl enable mongod.service; systemctl enable elx-ambience.service;"