summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2010-11-15 18:48:15 +0000
committerramon <ramongomez@us.es>2010-11-15 18:48:15 +0000
commit4a3cd1fc90eac990d8b151ab0452bf22fd2bc123 (patch)
tree0cc8fa58d189bfffb880c02b4a344b2853f6b60f /installer
parentbf41d13ab83f6556a950c348473352a3bd3eab9e (diff)
Incluir avisos de modificación de configuración por defecto en instalador y desinstalador.
Corregir erratas. Close #253. git-svn-id: https://opengnsys.es/svn/trunk@1346 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_installer.sh16
-rwxr-xr-xinstaller/opengnsys_uninstall.sh10
2 files changed, 15 insertions, 11 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index 7786a673..02d74d56 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -7,6 +7,13 @@
+#### AVISO: Editar configuración de acceso por defecto
+MYSQL_ROOT_PASSWORD="passwordroot" # Clave root de MySQL
+OPENGNSYS_DATABASE="ogAdmBD" # Nombre de la base datos
+OPENGNSYS_DB_USER="usuog" # Usuario de acceso
+OPENGNSYS_DB_PASSWD="passusuog" # Clave del usuario
+
+
# Sólo ejecutable por usuario root
if [ "$(whoami)" != 'root' ]
then
@@ -33,12 +40,7 @@ LOG_FILE=/tmp/opengnsys_installation.log
# Array con las dependencias
DEPENDENCIES=( subversion apache2 php5 libapache2-mod-php5 mysql-server php5-mysql nfs-kernel-server dhcp3-server udpcast bittorrent tftp-hpa tftpd-hpa syslinux openbsd-inetd update-inetd build-essential libmysqlclient15-dev wget doxygen graphviz bittornado ctorrent )
-# Datos de base de datos
-MYSQL_ROOT_PASSWORD="passwordroot"
-
-OPENGNSYS_DATABASE=ogAdmBD
-OPENGNSYS_DB_USER=usuog
-OPENGNSYS_DB_PASSWD=passusuog
+# Base de datos
OPENGNSYS_DB_CREATION_FILE=opengnsys/admin/Database/$OPENGNSYS_DATABASE.sql
@@ -987,7 +989,7 @@ function openGnsysConfigure()
echoAndLog "${FUNCNAME}(): Creating OpenGnSys config file in \"$INSTALL_TARGET/etc\"."
perl -pi -e "s/SERVERIP/$SERVERIP/g; s/DBUSER/$OPENGNSYS_DB_USER/g; s/DBPASSWORD/$OPENGNSYS_DB_PASSWD/g; s/DATABASE/$OPENGNSYS_DATABASE/g" $INSTALL_TARGET/etc/ogAdmServer.cfg
perl -pi -e "s/SERVERIP/$SERVERIP/g" $INSTALL_TARGET/etc/ogAdmRepo.cfg
- perl -pi -e "s/SERVERIP/$SERVERIP/g s/DBUSER/$OPENGNSYS_DB_USER/g; s/DBPASSWORD/$OPENGNSYS_DB_PASSWD/g; s/DATABASE/$OPENGNSYS_DATABASE/g" $INSTALL_TARGET/etc/ogAdmAgent.cfg
+ perl -pi -e "s/SERVERIP/$SERVERIP/g; s/DBUSER/$OPENGNSYS_DB_USER/g; s/DBPASSWORD/$OPENGNSYS_DB_PASSWD/g; s/DATABASE/$OPENGNSYS_DATABASE/g" $INSTALL_TARGET/etc/ogAdmAgent.cfg
chown root:root $INSTALL_TARGET/etc/{ogAdmServer.cfg,ogAdmAgent.cfg}
chmod 600 $INSTALL_TARGET/etc/{ogAdmServer.cfg,ogAdmAgent.cfg}
echoAndLog "${FUNCNAME}(): Creating Web Console config file"
diff --git a/installer/opengnsys_uninstall.sh b/installer/opengnsys_uninstall.sh
index 29879883..74b3c8f5 100755
--- a/installer/opengnsys_uninstall.sh
+++ b/installer/opengnsys_uninstall.sh
@@ -2,14 +2,16 @@
# Desinstalación de OpenGnSys.
-# Variables.
-OPENGNSYS="/opt/opengnsys" # Directorio de OpenGnSys
-OGIMG="images" # Directorio de imágenes del repositorio
+#### AVISO: Editar configuración de acceso.
MYSQLROOT="passwordroot" # Clave de root de MySQL
DATABASE="ogAdmBD" # Base de datos de administración
OLDDATABASE="ogBDAdmin" # Antigua base de datos
DBUSER="usuog" # Usuario de acceso a la base de datos
+# Variables.
+OPENGNSYS="/opt/opengnsys" # Directorio de OpenGnSys
+OGIMG="images" # Directorio de imágenes del repositorio
+
# Parar servicio.
echo "Uninstalling OpenGnSys services."
if [ -x /etc/init.d/opengnsys ]; then
@@ -47,5 +49,5 @@ rm -f /etc/init.d/opengnsys /etc/default/opengnsys
echo "Manual tasks:"
echo "- You may stop or uninstall manually all other services"
echo " (DHCP, PXE, TFTP, NFS, Apache, MySQL)."
-echo "- Delete repository directory \"$OGIMG\""
+echo "- Delete repository directory \"$OPENGNSYS/$OGIMG\""