refs #1134 Use unique ogboot php fpm
parent
8c4310d85e
commit
e2cb6a466b
|
@ -710,8 +710,8 @@ def get_php_fpm_version():
|
|||
def modify_php_fpm_config():
|
||||
php_version = get_php_fpm_version()
|
||||
php_fpm_conf_path = f"/etc/php/{php_version}/fpm/pool.d/www.conf"
|
||||
new_fpm_conf_path = f"/etc/php/{php_version}/fpm/pool.d/opengnsys.conf"
|
||||
socket_path = f"/run/php/php{php_version}-fpm-opengnsys.sock"
|
||||
new_fpm_conf_path = f"/etc/php/{php_version}/fpm/pool.d/ogboot.conf"
|
||||
socket_path = f"/run/php/php{php_version}-fpm-ogboot.sock"
|
||||
|
||||
if os.path.exists(new_fpm_conf_path):
|
||||
logger.info(f"Archivo {new_fpm_conf_path} ya existe. No se realizarán modificaciones.")
|
||||
|
@ -730,7 +730,7 @@ def modify_php_fpm_config():
|
|||
with open(new_fpm_conf_path, 'w') as file:
|
||||
for line in config_lines:
|
||||
if line.startswith('[www]'):
|
||||
file.write('[opengnsys]\n') # Cambiar el nombre del pool
|
||||
file.write('[ogboot]\n') # Cambiar el nombre del pool
|
||||
elif line.startswith('user ='):
|
||||
file.write('user = opengnsys\n')
|
||||
elif line.startswith('group ='):
|
||||
|
|
Loading…
Reference in New Issue