Projects
jsj
jsj-installtools
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 42
View file
jsj-installtools.changes
Changed
@@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Nov 12 09:46:16 UTC 2014 - obs@botter.cc + +- PrepareMysqlBackup: allow using no pw for MySQL (use "-") + fix detection of (not-)running of mysql.service + +------------------------------------------------------------------- Wed May 7 10:56:26 UTC 2014 - jsj@jsj.dyndns.org - fix PreparePostfix to set relayhost even if there is not space
View file
jsj-installtools.spec
Changed
@@ -6,7 +6,7 @@ License: SUSE-Freeware Group: Productivity/Networking/Other Autoreqprov: on -Version: 0.12.2 +Version: 0.13.2 Release: 1 Summary: Install tools for virtual hosts Source1: CreateConfig
View file
PrepareMysqlBackup
Changed
@@ -6,7 +6,7 @@ exit 1 fi if ${VERSION%%.*} -ge 12 ; then - systemctl status mysql.service + systemctl is-active mysql.service else rcmysql status fi @@ -21,7 +21,10 @@ fi fi ADMINPW=$1 -mysqladmin password $ADMINPW +if $ADMINPW != - ; then + mysqladmin password $ADMINPW + MPADMINPW="-p$ADMINPW" +fi # generate random password of length 16 PASSWRD=$(dd if=/dev/urandom count=14 bs=1 | mimencode | cut -c3-18) @@ -34,4 +37,4 @@ # add two users with limited rights for the backup and Nagios checking ( echo "grant SHOW DATABASES, SELECT, LOCK TABLES, RELOAD on *.* to 'nagiosuser'@'%' identified by 'NidBmT.';" echo "grant SHOW DATABASES, SHOW VIEW, SELECT, LOCK TABLES, RELOAD on *.* to 'mysqlbackup'@'localhost' identified by '$PASSWRD';" -echo "flush privileges;" ) | mysql -u root -p$ADMINPW +echo "flush privileges;" ) | mysql -u root $MPADMINPW
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
.