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 57)
Currently displaying revision
57
,
Show latest
#!/bin/bash MYSQL=0 MYSQLPW="" APACHE=0 APACHEHOST="" FTPD=0 FTPDPW="" YES="" if [ $# -lt 1 ]; then echo "call: $0 [MYSQL=mysqlpassword] APACHE=hostname [FTPD=ftpdpassword]" 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 APACHEHOST=$AW APACHE=1 else echo no apache hostname! exit 1 fi ;; ftpd=*|FTPD=*) AW=${1##*=} if [ ! -z $AW ]; then FTPDPW=$AW FTPD=1 else echo no ftpd user password! exit 1 fi ;; shost=*|SHOST=*) SHOST=${1##*=} if [ ! -z $SHOST ]; then SHOST="s" fi ;; *) echo do not know how to deal with $1 exit 1 ;; esac shift done if [ $FTPD = 1 ]; then if [ $APACHE = 0 ]; then echo ftpd without apache not feasible. exit 1 fi fi 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): $APACHEHOST" echo "Setup apache for support hostname(s): $SHOST$APACHEHOST" echo "Setup ftpd to apache for User: $APACHEHOST w/ PW $FTPDPW" 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 $? echo echo PrepareUpdateCrontab /usr/share/jsjinstalltools/PrepareUpdateCrontab echo $? echo echo PreparePostfix s$APACHEHOST /usr/share/jsjinstalltools/PreparePostfix $SHOST$APACHEHOST echo $? echo echo PrepareApacheConfig $APACHEHOST /usr/share/jsjinstalltools/PrepareApacheConfig $APACHEHOST $SHOST echo $? echo if [ $FTPD = 1 ]; then echo PrepareFTPd $APACHEHOST /usr/share/jsjinstalltools/PrepareFTPd $APACHEHOST $FTPDPW echo $? echo fi if [ $MYSQL = 1 ]; then echo PrepareMysqlBackup $MYSQLPW /usr/share/jsjinstalltools/PrepareMysqlBackup $MYSQLPW echo $? echo 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
.