Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:snagview
jasperreports
jasper_init_db
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jasper_init_db of Package jasperreports
#!/bin/sh jasperhome="/srv/tomcat6/webapps/jasperserver" echo "Please enter mysql user" read input_variable dbuser=$input_variable echo "Please enter mysql password" read input_variable dbpass=$input_variable mysql -u root -psector jasperserver -e exit &>/dev/null if [ $? -eq 0 ]; then echo "Database jasperserver already exists!" answer="not given yet" while [ "$answer" != "i know this will delete all data" ]; do echo "Type 'i know this will delete all data' to continue" read input_variable answer=$input_variable done echo "dropping old jasperserver database and creating a new one" mysql -u ${dbuser} -p${dbpass} < $jasperhome/scripts/jasperserver.sql else echo "creating jasperserver database" mysql -u ${dbuser} -p${dbpass} < $jasperhome/scripts/jasperserver.sql fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor