Projects
jsj
jsj-installtools
CreateConfig
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CreateConfig of Package jsj-installtools (Revision 5)
Currently displaying revision
5
,
Show latest
#!/bin/bash MYSQL=0 MYSQLPW="" APACHE="" YES="" if [ $# -lt 1 ]; then echo "call: $0 [MYSQL=mysqlpassword] APACHE=hostname" exit 1 fi while [ ! -z $1 ]; do case $1 in mysql=*|MYSQL=*) MYSQL=1 AW=${1##*=} if [ ! -z $AW ]; then MYSQLPW=$AW else echo no MySQL password! exit 1 fi ;; apache=*|APACHE=*) AW=${1##*=} if [ ! -z $AW ]; then APACHE=$AW else echo no apache hostname! exit 1 fi ;; *) echo do not know how to deal with $1 exit 1 ;; esac shift done echo -n "Prepare MySQL password and backup: " case $MYSQL in 0) echo no.;; 1) echo yes. echo " $MYSQLPW";; esac echo "Setup Apache for hostname(s): $APACHE" echo "correct? (yes/NO)" read AW if [ -z $AW ]; then YES=no; else YES=$AW; fi if [ $YES = "yes" ]; then echo PrepareNagiosTests /usr/share/jsjinstalltools/PrepareNagiosTests echo PrepareUpdateCrontab /usr/share/jsjinstalltools/PrepareUpdateCrontab echo PrepareApacheConfig $APACHE /usr/share/jsjinstalltools/PrepareApacheConfig $APACHE if [ $MYSQL = 1 ]; then echo PrepareMysqlBackup $MYSQLPW /usr/share/jsjinstalltools/PrepareMysqlBackup $MYSQLPW fi else echo aborted. exit 0 fi
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.