View | Details | Raw Unified | Return to bug 24730
Collapse All | Expand All

(-)a/branches/ucs-3.0/ucs/base/univention-server/managed-client (-5 / +2 lines)
 Lines 30-40    Link Here 
30
# /usr/share/common-licenses/AGPL-3; if not, see
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
31
# <http://www.gnu.org/licenses/>.
32
32
33
if [ ! -e /var/log/univention/managed-client.log ] ; then
33
. /usr/share/univention-lib/base.sh
34
	touch /var/log/univention/managed-client.log
34
create_logfile_if_missing /var/log/univention/managed-client.log "root:adm" 640
35
	chown root:adm /var/log/univention/managed-client.log
36
	chmod 640 /var/log/univention/managed-client.log
37
fi
38
35
39
case $1 in
36
case $1 in
40
	start)
37
	start)
(-)a/branches/ucs-3.0/ucs/base/univention-server/mobile-client (-5 / +2 lines)
 Lines 30-40    Link Here 
30
# /usr/share/common-licenses/AGPL-3; if not, see
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
31
# <http://www.gnu.org/licenses/>.
32
32
33
if [ ! -e /var/log/univention/mobile-client.log ] ; then
33
. /usr/share/univention-lib/base.sh
34
	touch /var/log/univention/mobile-client.log
34
create_logfile_if_missing /var/log/univention/mobile-client.log "root:adm" 640
35
	chown root:adm /var/log/univention/mobile-client.log
36
	chmod 640 /var/log/univention/mobile-client.log
37
fi
38
35
39
case $1 in
36
case $1 in
40
	start)
37
	start)
(-)a/branches/ucs-3.0/ucs/base/univention-server/server_password_change (-7 / +2 lines)
 Lines 30-40    Link Here 
30
# /usr/share/common-licenses/AGPL-3; if not, see
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
31
# <http://www.gnu.org/licenses/>.
32
32
33
if [ ! -e /var/log/univention/server_password_change.log ] ; then
33
. /usr/share/univention-lib/all.sh
34
	touch /var/log/univention/server_password_change.log
34
create_logfile_if_missing /var/log/univention/server_password_change.log "root:adm" 640
35
	chown root:adm /var/log/univention/server_password_change.log
36
	chmod 640 /var/log/univention/server_password_change.log
37
fi
38
35
39
exec 3>>/var/log/univention/server_password_change.log
36
exec 3>>/var/log/univention/server_password_change.log
40
echo "Starting server password change ($(date))" >&3
37
echo "Starting server password change ($(date))" >&3
 Lines 46-53   FAIL () { # log error message to log file and std-err, then fail Link Here 
46
43
47
eval "$(/usr/sbin/univention-config-registry shell)"
44
eval "$(/usr/sbin/univention-config-registry shell)"
48
45
49
. /usr/share/univention-lib/all.sh
50
51
# 0 -> set to true
46
# 0 -> set to true
52
# 1 -> set to false
47
# 1 -> set to false
53
# 2 -> empty
48
# 2 -> empty
(-)a/branches/ucs-3.0/ucs/base/univention-ssl/debian/control (+1 lines)
 Lines 15-20   Depends: ${misc:Depends}, Link Here 
15
 makepasswd,
15
 makepasswd,
16
 univention-directory-listener,
16
 univention-directory-listener,
17
 openssl-blacklist,
17
 openssl-blacklist,
18
 shell-univention-lib (>= 1.0.25-1),
18
 python-univention-lib (>= 1.0.25-1)
19
 python-univention-lib (>= 1.0.25-1)
19
Description: UCS - SSL/TLS certificates
20
Description: UCS - SSL/TLS certificates
20
 This packages can create a root CA certificate to be used
21
 This packages can create a root CA certificate to be used
(-)a/branches/ucs-3.0/ucs/base/univention-ssl/debian/univention-ssl.postinst (-5 / +2 lines)
 Lines 64-74   univention-config-registry set ssl/country?"${country:-DE}" \ Link Here 
64
64
65
eval "$(univention-config-registry shell)"
65
eval "$(univention-config-registry shell)"
66
66
67
if [ ! -e "/var/log/univention/ssl-sync.log" ]; then
67
. /usr/share/univention-lib/base.sh
68
	touch /var/log/univention/ssl-sync.log
68
create_logfile_if_missing /var/log/univention/ssl-sync.log "root:adm" 640
69
	chown root:adm /var/log/univention/ssl-sync.log
70
	chmod 640 /var/log/univention/ssl-sync.log
71
fi
72
if [ "$server_role" = "domaincontroller_master" ] || [ -z "$server_role" ] || [ "$server_role" = "basesystem" ]; then
69
if [ "$server_role" = "domaincontroller_master" ] || [ -z "$server_role" ] || [ "$server_role" = "basesystem" ]; then
73
	if [ ! -s $CERTPATH/00.pem ] && [ ! -e "/etc/univention/ssl/$hostname.$domainname" ]; then
70
	if [ ! -s $CERTPATH/00.pem ] && [ ! -e "/etc/univention/ssl/$hostname.$domainname" ]; then
74
71
(-)a/branches/ucs-3.0/ucs/services/univention-dhcp/debian/univention-dhcp.postinst (-5 / +2 lines)
 Lines 34-44   set -e Link Here 
34
34
35
#DEBHELPER#
35
#DEBHELPER#
36
36
37
if [ ! -e /var/log/univention/dhcp.log ] ; then
37
. /usr/share/univention-lib/base.sh
38
	touch /var/log/univention/dhcp.log
38
create_logfile_if_missing /var/log/univention/dhcp.log "root:adm" 640
39
	chown root:adm /var/log/univention/dhcp.log
40
	chmod 640 /var/log/univention/dhcp.log
41
fi
42
39
43
update-rc.d -f isc-dhcp-server remove >/dev/null 2>&1
40
update-rc.d -f isc-dhcp-server remove >/dev/null 2>&1
44
update-rc.d -f dhcp3-server remove >/dev/null 2>&1
41
update-rc.d -f dhcp3-server remove >/dev/null 2>&1
(-)a/branches/ucs-3.0/ucs/services/univention-pkgdb/debian/univention-pkgdb.postinst (-6 / +1 lines)
 Lines 65-75   then Link Here 
65
		/etc/init.d/univention-directory-listener crestart
65
		/etc/init.d/univention-directory-listener crestart
66
	fi
66
	fi
67
67
68
	if [ ! -e /var/log/univention/pkgdb.log ]; then
68
	create_logfile_if_missing /var/log/univention/pkgdb.log "root:adm" 640
69
		touch /var/log/univention/pkgdb.log
70
		chown root:adm /var/log/univention/pkgdb.log
71
		chmod 640 /var/log/univention/pkgdb.log
72
	fi
73
69
74
	if [ -x "/etc/init.d/univention-management-console-server" ] ; then
70
	if [ -x "/etc/init.d/univention-management-console-server" ] ; then
75
		/etc/init.d/univention-management-console-server crestart || true
71
		/etc/init.d/univention-management-console-server crestart || true
76
- 

Return to bug 24730