summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authordevega <miguel.vega@sic.uhu.es>2020-03-24 12:36:46 +0100
committerdevega <miguel.vega@sic.uhu.es>2020-03-24 12:36:46 +0100
commit7a51e7aeffd72798fcd8cfaa1f27535b5e959b07 (patch)
treedd19baeca029deaaa6b356bb4884bf9d93728250 /installer
parentaafce73629d6b5f5d0a055e109d6112a4bccbb14 (diff)
Updated Symfony 3.x to 4.xwebconsole3
- Reorganizado los Repositorios de Symfony - Registrado los commandos como Servicio - Actualizado la configuraión de Doctrine - Modificado el fichero update e installer.
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_installer3.sh12
-rwxr-xr-xinstaller/opengnsys_update3.sh12
2 files changed, 12 insertions, 12 deletions
diff --git a/installer/opengnsys_installer3.sh b/installer/opengnsys_installer3.sh
index 7ebc18f6..b884182c 100755
--- a/installer/opengnsys_installer3.sh
+++ b/installer/opengnsys_installer3.sh
@@ -1067,16 +1067,16 @@ echoAndLog "${FUNCNAME}(): Installing backend framework..."
pushd $INSTALL_TARGET/www3/backend
sudo -u $OPENGNSYS_CLIENT_USER composer.phar install
chmod 777 -R var/cache var/logs
-sudo -u $OPENGNSYS_CLIENT_USER php app/console doctrine:database:create --if-not-exists
-sudo -u $OPENGNSYS_CLIENT_USER php app/console doctrine:schema:update --force
-echo yes | php app/console doctrine:fixtures:load
-php app/console fos:user:create "$OPENGNSYS_DB_USER" "${OPENGNSYS_DB_USER}@localhost.localdomain" "$OPENGNSYS_DB_USER"
+sudo -u $OPENGNSYS_CLIENT_USER php bin/console doctrine:database:create --if-not-exists
+sudo -u $OPENGNSYS_CLIENT_USER php bin/console doctrine:schema:update --force
+echo yes | php bin/console doctrine:fixtures:load
+php bin/console fos:user:create "$OPENGNSYS_DB_USER" "${OPENGNSYS_DB_USER}@localhost.localdomain" "$OPENGNSYS_DB_USER"
# Guardar tokens de seguridad.
read -e APIID APISECRET <<< \
- "$(php app/console doctrine:query:sql "SELECT random_id, secret FROM og_core__clients WHERE id=1;" | \
+ "$(php bin/console doctrine:query:sql "SELECT random_id, secret FROM og_core__clients WHERE id=1;" | \
awk -F\" '$2~/^(random_id|secret)$/ {getline; printf("%s ", $2)}')"
read -e CLIENTID CLIENTSECRET <<< \
- "$(php app/console opengnsys:oauth-server:client:create --no-ansi \
+ "$(php bin/console opengnsys:oauth-server:client:create --no-ansi \
--grant-type="password" --grant-type="refresh_token" \
--grant-type="token" \
--grant-type="http://opengnsys.es/grants/og_client" | \
diff --git a/installer/opengnsys_update3.sh b/installer/opengnsys_update3.sh
index 265853ae..0559a5ed 100755
--- a/installer/opengnsys_update3.sh
+++ b/installer/opengnsys_update3.sh
@@ -709,16 +709,16 @@ function updateWeb3()
GRANT ALL PRIVILEGES ON ${OPENGNSYS_DATABASE}3.* TO $OPENGNSYS_DBUSER IDENTIFIED BY '$OPENGNSYS_DBPASSWORD';
"
# Crear la base de datos
- php app/console doctrine:database:create --if-not-exists
+ php bin/console doctrine:database:create --if-not-exists
# Actualizar el esquema de la base de datos
- php app/console doctrine:schema:update --force
- php app/console doctrine:fixtures:load
+ php bin/console doctrine:schema:update --force
+ php bin/console doctrine:fixtures:load
# Crear el usuario con permisos de Administrador
- php app/console fos:user:create admin admin@localhost.localdomain admin
+ php bin/console fos:user:create admin admin@localhost.localdomain admin
# Crear el cliente Auth2 para obtener us client_id y secret
- php app/console opengnsys:oauth-server:client:create --grant-type="password" --grant-type="refresh_token" --grant-type="token" --grant-type="http://opengnsys.es/grants/og_client"
+ php bin/console opengnsys:oauth-server:client:create --grant-type="password" --grant-type="refresh_token" --grant-type="token" --grant-type="http://opengnsys.es/grants/og_client"
# Realizar la migración de la versión anterior de opengnsys 1.1
- php app/console opengnsys:migration:execute
+ php bin/console opengnsys:migration:execute
popd
# Instalar NodeJs y NG.