source: pmb4.2/trunk/fuentes/pmb/lliurex/utilidades/updatedtables @ 2894

Last change on this file since 2894 was 2894, checked in by jrpelegrina, 3 years ago

Fix postinst

File size: 435 bytes
Line 
1#!/bin/bash
2
3echo "[ PMB 4.2] : Searching PMB database..."
4
5lliurex-sgbd --db_is_present lliurex-pmb
6
7if [ ! -f /tmp/db_is_present ]; then
8        echo "[ PMB 4.2] : PMB database not found. NOTHING TO DO"
9else
10        echo "[ PMB 4.2] : PMB database found. NOW some tables WILL BE UPDATED"
11        lliurex-pmb --upgrade   
12        PATH_SQL="/usr/share/pmb/www/lliurex/utilidades_sql/Update_tables.sql"
13        lliurex-sgbd --inject_sql lliurex-pmb $PATH_SQL 
14       
15fi
16
17exit 0
Note: See TracBrowser for help on using the repository browser.