Skip to content
New issue

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

error running script #198

Closed
hyllm opened this issue Jan 5, 2024 · 3 comments
Closed

error running script #198

hyllm opened this issue Jan 5, 2024 · 3 comments

Comments

@hyllm
Copy link

hyllm commented Jan 5, 2024

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\";","

@007revad
Copy link
Owner

007revad commented 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?

@hyllm
Copy link
Author

hyllm commented Jan 5, 2024

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

@007revad
Copy link
Owner

007revad commented Jan 5, 2024

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

@007revad 007revad closed this as completed Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants