diff options
author | ramon <ramongomez@us.es> | 2010-11-09 14:40:51 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2010-11-09 14:40:51 +0000 |
commit | 9de730194602833cc95b39f8f3bb5adb6f6fa395 (patch) | |
tree | 02c511bf09bac15b483974d1498f1d0faa6816fa | |
parent | f4aee27e20da0b5313869418d928a6d48db260aa (diff) |
Instalador protege los ficheros de configuraciĆ³n que incluyen claves.
git-svn-id: https://opengnsys.es/svn/trunk@1334 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-x | installer/opengnsys_installer.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index aac60f02..461b11d2 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -989,9 +989,13 @@ function openGnsysConfigure() perl -pi -e "s/SERVERIP/$SERVERIP/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" $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" OPENGNSYS_CONSOLEURL="http://$SERVERIP/opengnsys" perl -pi -e "s/SERVERIP/$SERVERIP/g; s/OPENGNSYSURL/${OPENGNSYS_CONSOLEURL//\//\\/}/g" $INSTALL_TARGET/www/controlacceso.php + chown $APACHE_RUN_USER:$APACHE_RUN_GROUP $INSTALL_TARGET/www/controlacceso.php + chmod 600 $INSTALL_TARGET/www/controlacceso.php sed -e "s/SERVERIP/$SERVERIP/g" -e "s/OPENGNSYSURL/${OPENGNSYS_CONSOLEURL//\//\\/}/g" $WORKDIR/opengnsys/admin/Sources/Clients/ogAdmClient/ogAdmClient.cfg > $INSTALL_TARGET/client/etc/ogAdmClient.cfg echoAndLog "${FUNCNAME}(): Starting OpenGnSys services." /etc/init.d/opengnsys start |