can't run pvesm set STORAGE --disable 0 from cron

peace1spirit

New Member
Aug 19, 2021
2
0
1
40
Hi,
I create /sbin/enableSTORAGE.sh

#!/bin/bash pvesm set STORAGE --disable 0

crontab -e
00 11 * * * /sbin/enableSTORAGE.sh

after the cron run, the storage still disable.
How to enable the STORAGE from cron
Anyone can help ? Thx
 

Attachments

  • Capture.PNG
    Capture.PNG
    15.5 KB · Views: 11
Hi,
please make sure that the script is executable chmod +x /sbin/enableSTORAGE.sh, and you might need to use /sbin/pvesm instead of pvesm.