| Server IP : 152.69.216.235 / Your IP : 80.80.80.28 Web Server : Apache/2.4.37 (Oracle Linux Server) System : Linux ust-wp4-prod 5.15.0-310.184.5.2.el8uek.x86_64 #2 SMP Wed Jul 9 16:08:33 PDT 2025 x86_64 User : apache ( 48) PHP Version : 8.4.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/ |
Upload File : |
#!/bin/bash
RETRY=3
for i in $(seq 1 "$RETRY"); do
INSTANCE_OCID=$(curl -H "Authorization: Bearer Oracle" -L http://169.254.169.254/opc/v2/instance/id)
if [[ "$INSTANCE_OCID" == *ocid* ]]; then
NFS_CLIENT_ID=$(echo -n $INSTANCE_OCID | /bin/sha512sum | head -c 16)
[[ -f /etc/modprobe.d/nfsclient.conf ]] && sed -i '/nfs4_unique_id/d' /etc/modprobe.d/nfsclient.conf
echo "options nfs nfs4_unique_id=$NFS_CLIENT_ID" >> /etc/modprobe.d/nfsclient.conf
break
else
sleep 1
fi
done