mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
Fix to wait for systemd to update configuration
[build]
This commit is contained in:
@ -36,6 +36,7 @@ if ($product) {
|
|||||||
|
|
||||||
copy_source_dest($temp, "$systemd_root/$product.service");
|
copy_source_dest($temp, "$systemd_root/$product.service");
|
||||||
system("systemctl daemon-reload >/dev/null 2>&1");
|
system("systemctl daemon-reload >/dev/null 2>&1");
|
||||||
|
sleep(3); # Wait for systemd to update configuration
|
||||||
|
|
||||||
if ($status eq "disabled") {
|
if ($status eq "disabled") {
|
||||||
system("systemctl disable ".
|
system("systemctl disable ".
|
||||||
|
Reference in New Issue
Block a user