Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 377986 Details for
Bug 511624
<app-admin/webmin-1.690: Multiple Cross-Site Scripting Vulnerabilities (CVE-2014-{3885,3886,3924})
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The new setup script for webmin
gentoo-setup.diff (text/plain), 1.63 KB, created by
PhobosK
on 2014-06-01 09:09:52 UTC
(
hide
)
Description:
The new setup script for webmin
Filename:
MIME Type:
Creator:
PhobosK
Created:
2014-06-01 09:09:52 UTC
Size:
1.63 KB
patch
obsolete
>--- /usr/local/portage/app-admin/webmin/files/gentoo-setup 2013-02-06 22:31:02.000000000 +0200 >+++ /usr/portage/app-admin/webmin/files/gentoo-setup 2014-06-01 00:15:55.649790758 +0300 >@@ -193,6 +193,7 @@ > > # Create start, stop, restart and reload Gentoo compliant Webmin scripts > # We use sys-apps/openrc functions which is already pulled by sys-apps/baselayout >+# or systemctl if we run under systemd > echo "Creating start and stop scripts.." > rm -f $config_dir/{start,stop,restart,reload} > >@@ -201,7 +202,11 @@ > #!/bin/sh > > if [ ! -f "${pidfile}" ]; then >- rc-service --ifexists -- webmin start >+ if [[ -d /run/systemd/system ]] ; then >+ systemctl start webmin.service >+ else >+ rc-service --ifexists -- webmin start >+ fi > fi > END > >@@ -209,21 +214,33 @@ > cat <<END >>"$config_dir/stop" > #!/bin/sh > >-rc-service --ifexists -- webmin --ifstarted stop >+if [[ -d /run/systemd/system ]] ; then >+ systemctl stop webmin.service >+else >+ rc-service --ifexists -- webmin --ifstarted stop >+fi > END > > # The restart script in /etc/webmin (Gentoo compliant) > cat <<END >>"$config_dir/restart" > #!/bin/sh > >-rc-service --ifexists -- webmin --ifstarted restart >+if [[ -d /run/systemd/system ]] ; then >+ systemctl try-restart webmin.service >+else >+ rc-service --ifexists -- webmin --ifstarted restart >+fi > END > > # The reload script in /etc/webmin (Gentoo compliant) > cat <<END >>"$config_dir/reload" > #!/bin/sh > >-rc-service --ifexists -- webmin --ifstarted reload >+if [[ -d /run/systemd/system ]] ; then >+ systemctl reload-or-try-restart webmin.service >+else >+ rc-service --ifexists -- webmin --ifstarted reload >+fi > END > > chmod 755 $config_dir/{start,stop,restart,reload}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 511624
:
377976
|
377982
|
377984
| 377986 |
378010
|
378012