From 74093bf18dedfe1e884ef415efb16c3b226fa1f1 Mon Sep 17 00:00:00 2001 From: lgromero Date: Wed, 13 Nov 2024 15:40:28 +0100 Subject: [PATCH] refs #1134 changes all permissions to opengnsys --- bin/oglivecli | 4 ++-- bin/setsmbpass | 2 +- etc/nginxServer.conf.tmpl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/oglivecli b/bin/oglivecli index ebd14e8..979362c 100755 --- a/bin/oglivecli +++ b/bin/oglivecli @@ -713,10 +713,10 @@ function check_services_status() { # Main program. # Access control. -if [ "$USER" = "root" ] || [ "$USER" = "ogboot" ] || groups $USER | grep -qw "ogboot"; then +if [ "$USER" = "root" ] || [ "$USER" = "opengnsys" ] || groups $USER | grep -qw "opengnsys"; then ACCESS="root" else - raiseError access "Need to be root, ogboot or a member of the ogboot group." + raiseError access "Need to be root, opengnsys or a member of the opengnsys group." fi # Check dependencies. diff --git a/bin/setsmbpass b/bin/setsmbpass index a1bb2ee..49f493e 100755 --- a/bin/setsmbpass +++ b/bin/setsmbpass @@ -10,7 +10,7 @@ TMPDIR=/tmp/oglive$$ let CHANGES=0 # Control básico de errores. -if [ "$USER" != "root" ] && [ "$USER" != "ogboot" ] && ! id -nG "$USER" | grep -qw "ogboot"; then +if [ "$USER" != "root" ] && [ "$USER" != "opengnsys" ] && ! id -nG "$USER" | grep -qw "opengnsys"; then echo "$PROG: Error: solo ejecutable por root, ogboot o miembros del grupo ogboot" >&2 exit 1 fi diff --git a/etc/nginxServer.conf.tmpl b/etc/nginxServer.conf.tmpl index 9c2c6da..9cfc144 100644 --- a/etc/nginxServer.conf.tmpl +++ b/etc/nginxServer.conf.tmpl @@ -18,7 +18,7 @@ server { # Bloque para manejar las solicitudes a index.php location ~ ^/index.php(/|$) { include fastcgi_params; - fastcgi_pass unix:/run/php/php__PHPVERSION__-fpm-ogboot.sock; # Asegúrate de que esto sea correcto + fastcgi_pass unix:/run/php/php__PHPVERSION__-fpm.sock; # Asegúrate de que esto sea correcto fastcgi_split_path_info ^(.+\.php)(/.*)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info;