Init esxi script not working,

badincite

Dabbler
Joined
Aug 10, 2022
Messages
20
In my previous version of TrueNAS I had my rescan script located in /root/ however the latest version only has /mnt/ available in the scripts. Everything I put there gets deleted once I reboot. How can I get the script to stay in the /mnt/ folder or fix so I can use the /root/ folder?

 

badincite

Dabbler
Joined
Aug 10, 2022
Messages
20
So I've moved it into my pool1 folder and it stays but the scripts still not login into esxi. I have checked all my previous mistakes permissions and full paths have been defined. I am able to get the command to work from the shell but i have to split it into 2 lines like below, but that doesnt seem to matter with the rescan.sh script.
ssh -i /mnt/pool1/esxi root@192.168.1.9
esxcli storage core adapter rescan --all


1696204934534.png
 
Top