We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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\";","
/volume1/Scripts/syno_hdd_db.sh: command substitution: line 2: syntax error near unexpected token
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\";","
The text was updated successfully, but these errors were encountered:
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?
Sorry, something went wrong.
such a stupid looser i am. :D uploaded only script. 🤦 now everything works. 💯
Your not the first person to do that... which is why I knew the answer.
No branches or pull requests
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\";","
The text was updated successfully, but these errors were encountered: