Projects
home:ajaissle:branches:Kolab:Development
kolab-scripts
check-mysql-backup.sh
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File check-mysql-backup.sh of Package kolab-scripts
#!/bin/bash PATH=/usr/bin echo -n "Checking for /root/.my.cnf file, required for mysql backups... " if [[ -f /root/.my.cnf ]]; then echo OK else echo echo " - Provide the password that you'll use for the SQL database, this is needed to" echo " allow backups to be made via the root account. The account information will be" echo " written to the file /root/.my.cnf, with read and write permission for root only." echo " See the file /etc/logrotate.d/mysql for more information about this." echo " - Remember the password please, as you'll be asked for it again during the Kolab" echo " setup process!" echo # read password echo -n " SQL database 'root' password: " read -s PASSWORD echo echo # create the account information file, see /etc/logrotate.d/mysql for more # information about this. ( echo "[mysqladmin]" echo "password=$PASSWORD" echo "user=root" ) > /root/.my.cnf chmod 600 /root/.my.cnf echo " The file /root/.my.cnf has been created" 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
.