This website is about customizing my Qnap TS-209 PRO.
Available scripts in Custom Scripts: apachelogs.sh to preserve the apache logfiles htaccess.sh to enable the use of .htaccess files in apache proftpd.sh to add logging to the FTP server (included in custom.tar) scp.sh to enable the use of scp
Please note: The scripts from this website are created with care, but I am not responsible if anything goes wrong with your Qnap system. Don't install the scripts and run them without understanding how they work.
Customizing made easy
Normally customizations don't survive a reboot or firmware upgrade.
To make this feature easier to use I have made a script to automate this procedure. It also installs a framework which makes it very easy to design and install your own scripts.
Installation steps: 1) download custom.tar [10 KB] 2) copy custom.tar to /share/MD0_DATA 3) tar -xf custom.tar 4) ./custom/setup/autorun-setup.sh
The framework consists of a series of directories which hold all the files needed for the customizations. The proftpd.sh script is included in custom.tar, it also serves as an example. Other scripts are available in the Custom Scripts section.
file or directory
purpose
custom/
base directory
autorunmaster.sh
script which is used to start other scripts
config-backup/
contains the original config files
customized/
contains the customized config files
log/
contains the logfiles
scripts/
contains the scripts to modify/replace config files
setup/
contains the script to setup the autorun.sh script