In this example I created a 'config' share and am I executing my script from there.
ssh root@<<TRUENAS_SCALE_IP/HOSTNAME>>
git clone https://github.com/ITninja04/QNAP_Scale_LCD_Script.git /mnt/Main/config/qnap_scripts
cd /mnt/Main/config/qnap_scripts
# Install dependencies (py-serial for example)
python setup.py install
chmod a+x launcher.sh && chmod a+x start_daemon.sh
./start_daemon.sh
- Login to admin web console.
- Choose System Settings -> Advanced
- Click Add next to Init/Shutdown Scripts
- Acknowledge the warning
- Fill out the form! 6. Description - Go crazy 7. Type - Script 8. Script - Navigate to where you cloned the git repo, and choose the start_daemon.sh script file. 9. When - Pre Init 10. Enabled - Checked 11. Timeout - Anything over 1 will be fine.