refs #1134 Use unique ogboot php fpm

ogboot-log
Luis Gerardo Romero Garcia 2024-11-13 18:07:54 +01:00
parent 8c4310d85e
commit e2cb6a466b
1 changed files with 3 additions and 3 deletions

View File

@ -710,8 +710,8 @@ def get_php_fpm_version():
def modify_php_fpm_config(): def modify_php_fpm_config():
php_version = get_php_fpm_version() php_version = get_php_fpm_version()
php_fpm_conf_path = f"/etc/php/{php_version}/fpm/pool.d/www.conf" 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" new_fpm_conf_path = f"/etc/php/{php_version}/fpm/pool.d/ogboot.conf"
socket_path = f"/run/php/php{php_version}-fpm-opengnsys.sock" socket_path = f"/run/php/php{php_version}-fpm-ogboot.sock"
if os.path.exists(new_fpm_conf_path): if os.path.exists(new_fpm_conf_path):
logger.info(f"Archivo {new_fpm_conf_path} ya existe. No se realizarán modificaciones.") 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: with open(new_fpm_conf_path, 'w') as file:
for line in config_lines: for line in config_lines:
if line.startswith('[www]'): 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 ='): elif line.startswith('user ='):
file.write('user = opengnsys\n') file.write('user = opengnsys\n')
elif line.startswith('group ='): elif line.startswith('group ='):