script

  1. M

    Script to change led_brightness_schedule in synoinfo.conf

    I am working on a script that changes the led_brightness_schedule of my NAS, based on the sunrise and sunset times at my location, in the synoinfo.conf file, see code below (feel free to use it) #!/bin/bash #Sunrise and Sunset times by https://sunrise-sunset.org strindex() { x="${1%%$2*}"...
  2. B

    php script with mssql and mysqli - cannot run from command line

    I have a php script that used mysqli and mssql (as in php version 5.6) When I run the script from a browser it runs fine (WebStation). But if I run it from either a terminal command line or run it as a user-defined scheduled script (in Task Scheduler) it returns mysqli and mssql not found...
  3. P

    Question Mount / unmount remote folder from script?

    I would like to be able to mount a remote folder (CIFS / SMB), perform an rsync, and dismount the folder. If not all that, at least check if the folder is mounted and mount it if not already mounted. (I've already got the rsync script running.) I have no trouble mounting the folder using the...
  4. FaasteerCZ

    Question Is there a way for automatic export a Let's Encrypt certificate to a folder?

    Hello to everyone, I had a DS214 for many years and I was very happy with its features. But I needed more space and more disks, so I upgraded to DS918 + a few days ago. And because I try to make the most of my equipment, I also started using also the Docker and in it jacobalberty UniFi...
  5. fredbert

    Info Scheduled task - run script to your schedule

    A simple trick to adjust the scheduled run time of a script is to use the unix sleep command as the top of the script. Example: I have a script that copies files from one remote folder to another local one. The remote server creates the new files on each quarter hour. The files take just over a...
  6. M

    Question Task scheduler - script output

    Does anyone know how to get the output of a script into the task scheduler 'Run Result' window ? eg if I run a simple script that echoes 'Hello' in the terminal, I presume this is stdout ? Yet when run in Task Scheduler, both the 'Script:' and 'Standard output/error:' boxes are empty...
  7. M

    Trigger a script on safe mode

    I have a Unifi cloud key (as part of a UDM), a DS918, and a low end Cyberpower UPS attached via usb to the DS. The cloud key can have well documented database corruption issues if it loses power abruptly, so I'd like to run a shell script when the synology enters Safe Mode prior, prior to...
  8. D

    Update certs via script

    Hi, I followed this tutorial acmesh-official/acme.sh. The only difference is that the certs are generated elsewhere, and just copied over to a folder on synology. Then - the script takes over and copies the cert files to all folders, services & reverse proxy. It seems to work fine for all...
Top