Fix searchreplace
This commit is contained in:
@@ -1016,13 +1016,13 @@ def post_pref(self, apt_packages, packages, upgrade=False):
|
|||||||
Log.debug(self, "Setting maxmemory variable to "
|
Log.debug(self, "Setting maxmemory variable to "
|
||||||
"{0} in redis.conf"
|
"{0} in redis.conf"
|
||||||
.format(int(wo_ram * 1024 * 1024 * 0.1)))
|
.format(int(wo_ram * 1024 * 1024 * 0.1)))
|
||||||
WOFileUtils.searchreplace
|
WOFileUtils.searchreplace(
|
||||||
(self,
|
self,
|
||||||
"/etc/redis/redis.conf",
|
"/etc/redis/redis.conf",
|
||||||
"# maxmemory <bytes>",
|
"# maxmemory <bytes>",
|
||||||
"maxmemory {0}"
|
"maxmemory {0}"
|
||||||
.format
|
.format
|
||||||
(int(wo_ram * 1024 * 1024 * 0.1)))
|
(int(wo_ram * 1024 * 1024 * 0.1)))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
Log.debug(self, "Setting maxmemory variable to {0} "
|
Log.debug(self, "Setting maxmemory variable to {0} "
|
||||||
|
|||||||
Reference in New Issue
Block a user