Is there a recommended location to put custom scripts to...???
-
Hi there...
...trying to figure out where to put custom script code on the pfSense...talking about (bash/shell) scripts and ssh keys and stuff...
Would like to see the scripts survive any reboot / upgrade / reinstall of pfSense and / or packages...
Just put 'em in
/home/myNewlyCreatedDir
...???Any hints/suggestions appreciated...
THX
-
@Ulrich-Neu said in Is there a recommended location to put custom scripts to...???:
Would like to see the scripts survive any reboot / upgrade / reinstall of pfSense and / or packages...
A reinstall will format the drive, so no manually placed file will survive that.
Use the "Filer" package and your custom scripts will be included in the config backup and should survive most actions.
-
@Ulrich-Neu
I'm log in as root, so I just use /root/
Some of my files are there for a decade or so.
If needed, change attributes and/or owner.Just keep in mind : keep a local copy of everything you put on pfSense.
Just in case you need to re install (hardware tends to last less as a humans live). -
The most likely place to be left alone is
/root/
or/conf/
. Though files you put into common locations under/usr/local/
will stay, it's more difficult to keep track of them there. Easy to forget.Either way, you'll want to keep backups, and the Filer or Backup package can help there.
-
I use /root/scripts as @jimp said keep backups.