Altering the behavior of a FreeNAS stock python script, what is the best practice?

Status
Not open for further replies.

Arik Yavilevich

Dabbler
Joined
Sep 22, 2015
Messages
12
Hi,

I am having some compatibility issues between FreeNAS and my setup with regard to VMWare snapshot coordination. I am looking to make a few small changes in an existing FreeNAS python script, for example, to exclude specific entries (VMs) from being processed.

I am looking for the best way to make change to a py file. The edit could be made manually or through some scheduled automatic command. The specific file I am looking at modifying is gui\tools\autosnap.py which seems to be at /usr/local/www/freenasUI/tools/ during run time.

Have this been done or tried before?
At what point such a change be overwritten?
How will it handle a reboot or version update?

I know this is not recommended. This is for experimentation and not for a production environment, so please don’t respond with just “you should not be doing this”. After all, FreeNAS is open source for a reason and I am taking full responsibility for the outcome.

Thanks,
Arik.
 
Status
Not open for further replies.
Top