Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Fixing expression to support 9+ GB Ram installs.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan-ncc committed Nov 19, 2019
1 parent 9f1ddb6 commit ab20084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chapter 3 Files/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ function update(){
cp /opt/lme/Chapter\ 3\ Files/docker-compose-stack.yml /opt/lme/Chapter\ 3\ Files/docker-compose-stack-live.yml

# copy ramcount into var
Ram_from_conf="$(grep -P -o "(?<=Xms)\d" /opt/lme/Chapter\ 3\ Files/docker-compose-stack-live.yml.old)"
Ram_from_conf="$(grep -P -o "(?<=Xms)\d+" /opt/lme/Chapter\ 3\ Files/docker-compose-stack-live.yml.old)"

# update Config file with ramcount
sed -i "s/ram-count/$Ram_from_conf/g" /opt/lme/Chapter\ 3\ Files/docker-compose-stack-live.yml
Expand Down

0 comments on commit ab20084

Please sign in to comment.