Answer the question
In order to leave comments, you need to log in
Why are all fixed files erased after reloading a debian build?
root @yellow :/# cat /etc/issue
Debian GNU/Linux 5.0 \n \l
this is a build on a lenovo px4-300r storage. I create some scripts to send monitoring, but after a server restart, all changes and new files are simply erased
Answer the question
In order to leave comments, you need to log in
Because you create scripts in /var/prtg/scripts, they are deleted after reboot, most likely because the directory is temporary and is in RAM.
Check: mount --types tmpfs
Try to create a script in another place, not in / var
So that the routes are not lost, you need to add them to the configuration file /etc/network/interfaces, but rather a separate script in /etc/network/if-up.d/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question