Skip to content

Commit

Permalink
Merge branch 'master' of github.com:webmin/webmin
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Nov 13, 2020
2 parents d3be5b8 + 7960288 commit 4ea9235
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
6 changes: 4 additions & 2 deletions net/net-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
# Special case for Slackware 9.1+
do "$gconfig{'os_type'}-9.1-ALL-lib.pl";
}
elsif ($gconfig{'os_type'} eq 'debian-linux' && -d "/etc/netplan" &&
&has_command("netplan")) {
elsif ($gconfig{'os_type'} eq 'debian-linux' &&
&has_command("netplan") &&
-d "/etc/netplan" &&
glob("/etc/netplan/*")) {
# Special case for newer Ubuntu versions
do "netplan-lib.pl";
}
Expand Down
12 changes: 3 additions & 9 deletions password_change.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,13 @@ if (&get_product_name() eq 'usermin' &&

# Show ok page
&header(undef, undef, undef, undef, 1, 1);

print "<center><h3>",&text('password_done', "/"),"</h3></center>\n";

print &ui_alert_box(&text('password_done', "/"), "success");
&footer();

sub pass_error
{
&header(undef, undef, undef, undef, 1, 1);
print &ui_hr();

print "<center><h3>",$text{'password_err'}," : ",@_,"</h3></center>\n";

print &ui_hr();
&header(undef, undef, undef, undef, 1, 1, undef, undef);
print &ui_alert_box("$text{'password_err'}: @_.", "danger");
&footer();
exit;
}
Expand Down

0 comments on commit 4ea9235

Please sign in to comment.