Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbintb committed Nov 13, 2024
1 parent 89141bd commit c5c4d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .plugin/03-post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ config_file="/path/to/config.conf"
new_value="/path/to/your/module.so"

awk -v new_value="$new_value" '
/^#? *loadmodule / && !found {
/^#? *loadmodule / && !found {
$0 = "loadmodule " new_value
found = 1
}
{ print }
' "$config_file" > "$config_file.tmp" && mv "$config_file.tmp" "$config_file"
' "$config_file" > "$config_file.tmp" && mv "$config_file.tmp" "$config_file"

#sed -i '54 i\loadmodule /usr/bin/valkey-modules/redisearch.so' /etc/valkey/valkey.conf
sysctl vm.overcommit_memory=1
Expand Down

0 comments on commit c5c4d51

Please sign in to comment.