Modified upload script to get password from temp file instead of command line and restart the service