[GH-ISSUE #198] error running script #79

Closed
opened 2026-03-07 19:15:12 +03:00 by kerem · 3 comments
Owner

Originally created by @hyllm on GitHub (Jan 5, 2024).
Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/198

getting this.. :( running with --nr parameter

Model DS1823xs+, DSM 7.2.1 Update 3

/volume1/Scripts/syno_hdd_db.sh: command substitution: line 2: syntax error near unexpected token ('
/volume1/Scripts/syno_hdd_db.sh: command substitution: line 2: find $dbpath -maxdepth 1 \\( -name \"*.db.new.bak\" -o -name \"*.db.bak\" \\)))"," # Sort array"," IFS=$'\\n'"," dbbakfiles=($(sort <<<\"${dbbaklist[*]}\"))"," unset IFS",""," echo \"\""," if [[ ${#dbbakfiles[@]} -gt \"0\" ]] || [[ -f ${synoinfo}.bak ]] ||\\"," [[ -f ${dtb_file}.bak ]] || [[ -f ${adapter_cards}.bak ]] ; then",""," # Restore synoinfo.conf from backup"," if [[ -f ${synoinfo}.bak ]]; then"," keyvalues=(\"support_disk_compatibility\" \"support_memory_compatibility\")"," keyvalues+=(\"mem_max_mb\" \"supportnvme\" \"support_m2_pool\" \"support_wdda\")"," for v in \"${!keyvalues[@]}\"; do"," defaultval=\"$(get_key_value ${synoinfo}.bak \"${keyvalues[v]}\")\""," currentval=\"$(get_key_value ${synoinfo} \"${keyvalues[v]}\")\""," if [[ $currentval != \"$defaultval\" ]]; then"," if synosetkeyvalue \"$synoinfo\" \"${keyvalues[v]}\" \"$defaultval\";","

Originally created by @hyllm on GitHub (Jan 5, 2024). Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/198 getting this.. :( running with --nr parameter Model DS1823xs+, DSM 7.2.1 Update 3 `/volume1/Scripts/syno_hdd_db.sh: command substitution: line 2: syntax error near unexpected token `(' /volume1/Scripts/syno_hdd_db.sh: command substitution: line 2: `find $dbpath -maxdepth 1 \\( -name \"*.db.new.bak\" -o -name \"*.db.bak\" \\)))"," # Sort array"," IFS=$'\\n'"," dbbakfiles=($(sort <<<\"${dbbaklist[*]}\"))"," unset IFS",""," echo \"\""," if [[ ${#dbbakfiles[@]} -gt \"0\" ]] || [[ -f ${synoinfo}.bak ]] ||\\"," [[ -f ${dtb_file}.bak ]] || [[ -f ${adapter_cards}.bak ]] ; then",""," # Restore synoinfo.conf from backup"," if [[ -f ${synoinfo}.bak ]]; then"," keyvalues=(\"support_disk_compatibility\" \"support_memory_compatibility\")"," keyvalues+=(\"mem_max_mb\" \"supportnvme\" \"support_m2_pool\" \"support_wdda\")"," for v in \"${!keyvalues[@]}\"; do"," defaultval=\"$(get_key_value ${synoinfo}.bak \"${keyvalues[v]}\")\""," currentval=\"$(get_key_value ${synoinfo} \"${keyvalues[v]}\")\""," if [[ $currentval != \"$defaultval\" ]]; then"," if synosetkeyvalue \"$synoinfo\" \"${keyvalues[v]}\" \"$defaultval\";"," `
kerem closed this issue 2026-03-07 19:15:12 +03:00
Author
Owner

@007revad commented on GitHub (Jan 5, 2024):

Did you download the .zip file from here: https://github.com/007revad/Synology_HDD_db/releases/tag/v3.3.73 and save it to a shared folder on the Synology?

Then unzip the downloaded zip file and run the script from that folder?

<!-- gh-comment-id:1878452419 --> @007revad commented on GitHub (Jan 5, 2024): Did you download the .zip file from here: https://github.com/007revad/Synology_HDD_db/releases/tag/v3.3.73 and save it to a shared folder on the Synology? Then unzip the downloaded zip file and run the script from that folder?
Author
Owner

@hyllm commented on GitHub (Jan 5, 2024):

such a stupid looser i am. :D uploaded only script. 🤦 now everything works. 💯

<!-- gh-comment-id:1878463775 --> @hyllm commented on GitHub (Jan 5, 2024): such a stupid looser i am. :D uploaded only script. 🤦 now everything works. 💯
Author
Owner

@007revad commented on GitHub (Jan 5, 2024):

Your not the first person to do that... which is why I knew the answer.

<!-- gh-comment-id:1878466532 --> @007revad commented on GitHub (Jan 5, 2024): Your not the first person to do that... which is why I knew the answer.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Synology_HDD_db#79
No description provided.