diff options
Diffstat (limited to 'bin/ncp/CONFIG/nc-limits.sh')
-rw-r--r-- | bin/ncp/CONFIG/nc-limits.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/ncp/CONFIG/nc-limits.sh b/bin/ncp/CONFIG/nc-limits.sh index 1597bb79..c9fbf87e 100644 --- a/bin/ncp/CONFIG/nc-limits.sh +++ b/bin/ncp/CONFIG/nc-limits.sh @@ -10,8 +10,6 @@ configure() { - source /usr/local/etc/library.sh # sets PHPVER - # Set auto memory limit to 75% of the total memory local TOTAL_MEM="$( free -b | sed -n 2p | awk '{ print $2 }' )" AUTOMEM=$(( TOTAL_MEM * 75 / 100 )) @@ -48,7 +46,7 @@ configure() echo "Using $AUTOMEM memory for the database" [[ "$CURRENT_DB_MEM" != "$AUTOMEM" ]] && { sed -i "s|^innodb_buffer_pool_size =.*|innodb_buffer_pool_size = $AUTOMEM|" "$CONF" - service mysql restart + service mariadb restart } # RESTART PHP |