| | |
| | | import de.uhilger.baselink.PersistenceManager; |
| | | import de.uhilger.baselink.Record; |
| | | import de.uhilger.um.api.UserMgr; |
| | | import de.uhilger.um.daten.User; |
| | | import java.io.BufferedReader; |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | |
| | | if(!dbVorhanden(db, sql.getProperty(SQL_DB_VORHANDEN))) { |
| | | logger.info("Datenbank ist nicht vorhanden"); |
| | | int[] ergebnis = db.executeScript(getSqlSkript()); |
| | | User admin = new User(); |
| | | admin.setId("admin"); |
| | | admin.setPw("admin"); |
| | | UserMgr um = new UserMgr(); |
| | | um.setServletContext(servletContext); |
| | | um.createUser(admin); |
| | | } |
| | | } catch(Exception ex) { |
| | | logger.log(Level.INFO, ex.getMessage(), ex); |