command provided on readme does not work
leonpano2006 opened this issue · comments
DS:DiskStation[~/Synology_HDD_db]$ sudo -i ./syno_hdd_db.sh -nr Loading module 'filesystem' ... Loading module 'kernel' ... Loading module 'message' ... Loading module 'mount' ... Loading module 'platform' ... Loading module 'utils' ... Loading module 'volume' ... -ash: ./syno_hdd_db.sh: No such file or directory
so i use this insisted
DS:DiskStation[~/Synology_HDD_db]$ sudo su DS:DiskStation[/volume1/homes/leonpano/Synology_HDD_db]# ./syno_hdd_db.sh -nr Synology_HDD_db v3.4.82 DS2419+ DSM 7.2.1-69057-3 StorageManager 1.0.0-0017 Using options: -nr Running from: /volume1/homes/leonpano/Synology_HDD_db/syno_hdd_db.sh
... output after is not needed for this issue
Thanks.
If the script is in your home folder and you try to run the script with sudo -i ./syno_hdd_db.sh
you'll get the "No such file or directory" error. This is because sudo -i uses root's profile, and the script is not located in root's home.
I've changed the readme to show sudo -s
which doesn't change to root's profile.