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

(-)__init__.py (-3 / +4 lines)
 Lines 690-699    Link Here 
690
690
691
	def __create_at_job(self, command):
691
	def __create_at_job(self, command):
692
		script = '''
692
		script = '''
693
exec >> /var/log/univention/security-updates.log 2>&1
693
dpkg-statoverride --add root root 0644 /usr/sbin/univention-management-console-server
694
dpkg-statoverride --add root root 0644 /usr/sbin/univention-management-console-server
694
dpkg-statoverride --add root root 0644 /usr/sbin/apache2
695
dpkg-statoverride --add root root 0644 /usr/sbin/apache2
695
chmod -x /usr/sbin/univention-management-console-server /usr/sbin/apache2
696
chmod -x /usr/sbin/univention-management-console-server /usr/sbin/apache2
696
%s
697
%s </dev/null
697
if [ $? -eq 0 ]; then
698
if [ $? -eq 0 ]; then
698
	univention-config-registry set update/reboot/required=yes
699
	univention-config-registry set update/reboot/required=yes
699
fi
700
fi
 Lines 701-708    Link Here 
701
dpkg-statoverride --remove /usr/sbin/apache2
702
dpkg-statoverride --remove /usr/sbin/apache2
702
chmod +x /usr/sbin/univention-management-console-server /usr/sbin/apache2
703
chmod +x /usr/sbin/univention-management-console-server /usr/sbin/apache2
703
''' % command
704
''' % command
704
		p1 = subprocess.Popen(['echo "%s" | at now' % script], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
705
		p1 = subprocess.Popen(['at', 'now'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
705
		(stdout,stderr) = p1.communicate()
706
		(stdout,stderr) = p1.communicate(script)
706
		ud.debug(ud.ADMIN, ud.WARN, 'executing "%s"' % command)
707
		ud.debug(ud.ADMIN, ud.WARN, 'executing "%s"' % command)
707
		ud.debug(ud.ADMIN, ud.WARN, 'install stderr=%s' % stderr)
708
		ud.debug(ud.ADMIN, ud.WARN, 'install stderr=%s' % stderr)
708
		ud.debug(ud.ADMIN, ud.INFO, 'install stdout=%s' % stdout)
709
		ud.debug(ud.ADMIN, ud.INFO, 'install stdout=%s' % stdout)

Return to bug 17354