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

peace1spirit

New Member
Aug 19, 2021
2
0
1
39
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: 9
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!