Projects
jsj
jsj-installtools
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 95
View file
jsj-installtools.changes
Changed
@@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Aug 3 07:37:38 UTC 2022 - Stefan Botter <obs@botter.cc> + +- add hsb preconfig to PrepareNagiosTests and PreparePostfix, + better handling of postfix configuration + +------------------------------------------------------------------- Wed Jun 22 10:07:21 UTC 2022 - Stefan Botter <obs@botter.cc> - Fix PrepareMysqlBackup to start and enable mariadb.service,
View file
PrepareNagiosTests
Changed
@@ -6,6 +6,7 @@ case $VAR in jsj) ;; hsbhv) ;; + hsb) ;; *) echo Variante $VAR nicht vorgesehen, bitte prüfen!; exit;; esac . /usr/share/jsjinstalltools/GetVersion
View file
PreparePostfix
Changed
@@ -1,8 +1,21 @@ #!/bin/bash if $# != 1 ; then - echo usage: $0 hostname + echo usage: $0 hostname config + echo config: jsj (default) + echo hsbhv + echo hsb exit fi +VAR=$2 +if $VAR"_" = _ ; then + VAR=jsj +fi +case $VAR in + jsj) DOMAIN=botter.cc; RELAY=router.botter.cc; ROOTMAIL=root@botter.cc;; + hsbhv) DOMAIN=hs-bremerhaven.de; RELAY=smtp.hs-bremerhaven.de; ROOTMAIL=sbotter@hs-bremerhaven.de;; + hsb) DOMAIN=fb1.hs-bremen.de; RELAY=smtp.hs-bremen.de; ROOTMAIL=zfr-admin@hs-bremen.de;; + *) echo Variante $VAR nicht vorgesehen, bitte prüfen!; exit;; +esac . /usr/share/jsjinstalltools/GetVersion HOSTNAME=$1 if ${VERSION_ID/./} -ge 130 ; then @@ -11,13 +24,13 @@ cp /etc/postfix/main.cf /etc/postfix/main.cf.orig POSTCONF=$(mktemp /tmp/main.cf.XXXXXXXXXX) postconf -n | \ - sed -e "s/\(myhostname = \).*$/\1$HOSTNAME.botter.cc/" \ - -e 's/\(relayhost =\).*$/\1 router.botter.cc/' \ + sed -e "s/\(myhostname = \).*$/\1$HOSTNAME.$DOMAIN/" \ + -e "s/\(relayhost =\).*$/\1 $RELAY/" \ > $POSTCONF mv $POSTCONF /etc/postfix/main.cf chmod 644 /etc/postfix/main.cf ALIASES=$(mktemp /tmp/aliases.XXXXXXXXXX) -sed -e '/^root:/ d' -e '/^#root:/ a root: root@botter.cc' < /etc/aliases > $ALIASES +sed -e '/^root:/ d' -e "/^#root:/ a root: $ROOTMAIL" < /etc/aliases > $ALIASES mv /etc/aliases /etc/aliases.orig mv $ALIASES /etc/aliases chmod 644 /etc/aliases
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
.