Projects
jsj
jsj-installtools
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 11
View file
PrepareMysqlBackup
Changed
@@ -1,4 +1,23 @@ #!/bin/bash +if -f /etc/SuSE-release ; then + VERSION=$(egrep VERSION /etc/SuSE-release | cut -f2 -d= | tr -d " ") +else + echo No file /etc/SuSE-release available. Stop. + exit 1 +fi +if ${VERSION%%.*} -lt 12 ; then + rcmysql status +else + systemctl status mysql.service +fi +RET=$? +if $RET != 0 ; then + if ${VERSION%%.*} -lt 12 ; then + rcmysql start + else + systemctl start mysql.service + fi +fi ADMINPW=$1 mysqladmin password $ADMINPW # generate random password of length 16
View file
PrepareUpdateCrontab
Changed
@@ -8,5 +8,6 @@ 29 0 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly 44 0 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly EOF +fi ( crontab -l; echo "0 5 * * * zypper -n up --auto-agree-with-licenses" ) | \ egrep -v "^#" | crontab -
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
.