Projects
jsj
jsj-installtools
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 55
View file
jsj-installtools.changes
Changed
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Tue Dec 27 12:56:28 UTC 2016 - obs@botter.cc + +- modify version detection to work correctly with Leap versions + +------------------------------------------------------------------- Fri Mar 18 13:13:44 UTC 2016 - obs@botter.cc - modify PreparePostfix to delete any previous configured root
View file
jsj-installtools.spec
Changed
@@ -6,7 +6,7 @@ License: SUSE-Freeware Group: Productivity/Networking/Other Autoreqprov: on -Version: 0.42.1 +Version: 0.42.2 Release: 1 Summary: Install tools for virtual hosts Source1: CreateConfig
View file
PrepareApacheConfig
Changed
@@ -18,7 +18,7 @@ echo no file nagiosok.html exit 1 fi -if ${VERSION_ID%%.*} -lt 13 ; then +if ${VERSION_ID/./} -lt 130 ; then TEMPFILE=$(mktemp /tmp/apache_listen.XXXXXXXXXX) sed -e 's/^#\(NameVirtualHost \*:80.*$\)/\1/' < /etc/apache2/listen.conf > $TEMPFILE mv $TEMPFILE /etc/apache2/listen.conf @@ -37,7 +37,7 @@ exit 1 fi zypper -n in -l phpMyAdmin -if ${VERSION_ID%%.*} -ge 12 ; then +if ${VERSION_ID/./} -ge 120 ; then systemctl restart apache2.service systemctl enable apache2.service else
View file
PrepareFTPd
Changed
@@ -14,7 +14,7 @@ sed -e "s/\(^www.*$\)/\1$USER/" < /etc/group > $GROUPFILE mv $GROUPFILE /etc/group chmod 644 /etc/group -if ${VERSION_ID%%.*} -ge 12 ; then +if ${VERSION_ID/./} -ge 120 ; then zypper -n in -l vsftpd cp /etc/vsftpd.conf /etc/vsftpd.conf.orig sed -e 's/^\(write_enable=\).*$/\1YES/' -e 's/^#\(local_umask=\).*$/\1 022/' \
View file
PrepareMysqlBackup
Changed
@@ -1,13 +1,13 @@ #!/bin/bash . /usr/share/jsjinstalltools/GetVersion -if ${VERSION_ID%%.*} -ge 12 ; then +if ${VERSION_ID/./} -ge 120 ; then systemctl is-active mysql.service else rcmysql status fi RET=$? if $RET != 0 ; then - if ${VERSION_ID%%.*} -ge 12 ; then + if ${VERSION_ID/./} -ge 120 ; then systemctl start mysql.service systemctl enable mysql.service else
View file
PrepareNagiosTests
Changed
@@ -1,8 +1,8 @@ #!/bin/bash . /usr/share/jsjinstalltools/GetVersion -zypper sl -u | egrep "jsj/openSUSE_$VERSION" 2>&1 > /dev/null +zypper sl -u | egrep "jsj/openSUSE_.*$VERSION" 2>&1 > /dev/null if $? != 0 ; then - if $VERSION -gt 42.0 ; then + if ${VERSION_ID/./} -ge 420 ; then REPOVERSION="Leap_$VERSION" else REPOVERSION="$VERSION" @@ -11,13 +11,16 @@ fi zypper -n in -l nrpe monitoring-plugins-zypper nagios-plugins-kernel check_mk-agent rdiff-backup rsync -vaPH nagios.jacobs-university.de::nagios/ /etc/nagios/ -if ${VERSION_ID%%.*} -ge 12 ; then +if $? != 0 ; then + rsync -vaPH root@nagios.jacobs-university.de:nagios/ /etc/nagios/ +fi +if ${VERSION_ID/./} -ge 120 ; then sed -e '/pid_file/ s/pid_file=.*/pid_file=\/var\/run\/nrpe\/nrpe.pid/' < /etc/nagios/nrpe.cfg > /etc/nagios/nrpe.cfg.new mv /etc/nagios/nrpe.cfg.new /etc/nagios/nrpe.cfg cp /etc/nagios/nrpe.cfg /etc systemctl enable nrpe.service systemctl start nrpe.service - if ${VERSION_ID%%.*} -ge 13 ; then + if ${VERSION_ID/./} -ge 130 ; then systemctl enable check_mk-agent.socket systemctl start check_mk-agent.socket else
View file
PreparePostfix
Changed
@@ -5,7 +5,7 @@ fi . /usr/share/jsjinstalltools/GetVersion HOSTNAME=$1 -if ${VERSION_ID%%.*} -ge 13 ; then +if ${VERSION_ID/./} -ge 130 ; then echo $HOSTNAME".site" > /etc/HOSTNAME fi cp /etc/postfix/main.cf /etc/postfix/main.cf.orig @@ -22,7 +22,7 @@ mv $ALIASES /etc/aliases chmod 644 /etc/aliases newaliases -if ${VERSION_ID%%.*} -ge 12 ; then +if ${VERSION_ID/./} -ge 120 ; then systemctl restart postfix.service systemctl enable postfix.service else
View file
PrepareUpdateCrontab
Changed
@@ -16,6 +16,7 @@ fi ( crontab -l; echo "$((0x$(head -c2 /dev/urandom | hexdump | awk '$2 > 0 {print $2}') % 60)) 5 * * * zypper -n up --auto-agree-with-licenses" ) | \ egrep -v "^#" | crontab - -if ${VERSION_ID/./} -ge 132 ; then +# 20161227: jsj right now only 132 has the logrotate timer +if ${VERSION_ID/./} -eq 132 ; then systemctl enable logrotate.timer 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
.