Compare commits

..

10 Commits
1.830 ... 1.831

Author SHA1 Message Date
Jamie Cameron
d46a07d74b Version bump 2017-01-06 22:07:36 -08:00
Jamie Cameron
a7cf8d49dd German translation updates from Raymond Vetter 2017-01-05 23:01:36 -08:00
Jamie Cameron
4368bf87bb Add field for CIFS version https://virtualmin.com/node/45199 2017-01-03 17:14:11 -08:00
Jamie Cameron
6551501b7e Ensure apache access to the well-known directory 2017-01-02 18:11:18 -08:00
Jamie Cameron
9449111200 permissions fixes 2017-01-02 13:19:38 -08:00
Jamie Cameron
442fc7fd0f Use new version saving function 2017-01-02 13:19:01 -08:00
Jamie Cameron
3eff4a2533 Merge branch 'master' of git@github.com:webmin/webmin 2017-01-02 13:17:55 -08:00
Jamie Cameron
f643ce80d0 Make authentic the default for new installs 2017-01-02 13:16:44 -08:00
Jamie Cameron
f84f99abb1 Merge pull request #475 from qooob/patch-1
Missed dialogs for new 1.830 distro
2017-01-01 21:23:29 -08:00
Ilia Rostovtsev
a84fe682b7 Missed dialogs for new 1.830 distro 2017-01-01 14:19:29 +03:00
11 changed files with 85 additions and 10 deletions

2
README
View File

@@ -1,4 +1,4 @@
Webmin Version 1.830
Webmin Version 1.831
--------------------
Webmin is a web-based interface for system administration for Unix.
Using any browser that supports tables and forms, you can setup user

View File

@@ -1 +1 @@
gray-theme
authentic-theme

0
filemin/chattr.cgi Normal file → Executable file
View File

0
filemin/chcon.cgi Normal file → Executable file
View File

View File

@@ -104,7 +104,7 @@
<select name="method">
<option value="tar">.tar.gz</option>
<option value="zip">.zip</option>
</select>
</select>
</form>
</div>
<div class="modal-footer">
@@ -163,6 +163,56 @@
</div>
</div>
<div id="chattrDialog" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="warning">$text{'chattr_selected'}</h4>
</div>
<div class="modal-body">
<form id="chattrForm">
<div class="form-group">
<label>$text{'attr_label'}</label>
<input name="label" type="text" class="form-control">
<label>$text{'dialog_recursive'}</label>
<input id="chattr-recursive" type="checkbox" name="recursive" class="form-control">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="chattrSelected()">$text{'dialog_change'}</button>
<button type="button" class="btn bnt-default" data-dismiss="modal">$text{'dialog_cancel'}</button>
</div>
</div>
</div>
</div>
<div id="chconDialog" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="warning">$text{'chcon_selected'}</h4>
</div>
<div class="modal-body">
<form id="chconForm">
<div class="form-group">
<label>$text{'context_label'}</label>
<input name="label" type="text" class="form-control">
<label>$text{'dialog_recursive'}</label>
<input id="chcon-recursive" type="checkbox" name="recursive" class="form-control">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="chconSelected()">$text{'dialog_change'}</button>
<button type="button" class="btn bnt-default" data-dismiss="modal">$text{'dialog_cancel'}</button>
</div>
</div>
</div>
</div>
<div id="chmodDialog" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
@@ -190,7 +240,7 @@
<td><input type="checkbox" name="group4" value="4" onclick="calc_chmod()"></td>
<td><input type="checkbox" name="other4" value="4" onclick="calc_chmod()"></td>
</tr>
<tr>
<tr>
<td>$text{'chmod_write'}</td>
<td><input type="checkbox" name="owner2" value="2" onclick="calc_chmod()"></td>
<td><input type="checkbox" name="group2" value="2" onclick="calc_chmod()"></td>
@@ -318,3 +368,4 @@
</div>
</div>
</div>

View File

@@ -152,6 +152,7 @@ linux_continue=Weitermachen
linux_conv=DOS-Unix-Zeilenumbruchumwandlung
linux_conv2=OS/2-Unix-Zeilenumbruchumwandlung
linux_credentials=Datei mit Anmeldeinformationen
linux_cvers=CIFS Version
linux_df=Reservierte Bl&#246;cke in Dateisystemgr&#246;&#223;e einrechnen?
linux_disk=Festplatte
linux_dmode=Verzeichnisrechte
@@ -161,6 +162,7 @@ linux_eautomap=Die Automount-&Uuml;bersichtsdatei '$1' existiert nicht
linux_ebind=Fehlendes oder nicht-existentes Original-Verzeichnis
linux_ecname=Fehlender oder ung&#252;ltiger Netbios-Client-Name
linux_ecodepage=Fehlende oder ung&#252;ltige Zeichensatztabelle
linux_ecvers=CIFS Version muss eine Zahl sein
linux_edev=Kein Ger&auml;t angegeben
linux_edevfile=Die Ger&auml;tedatei '$1' existiert nicht
linux_edmode='$1' ist kein g&uuml;ltiger oktaler Verzeichnismodus

View File

@@ -390,6 +390,8 @@ linux_iocharset=IO character set
linux_ecodepage=Missing or invalid code page
linux_eiocharset=Missing or invalid IO character set
linux_nounix=Disable CIFS Unix extensions?
linux_cvers=CIFS version
linux_ecvers=CIFS version must be a number
log_mount=Mounted $3
log_mount_l=Mounted $2 $1 on $3

View File

@@ -1558,6 +1558,10 @@ elsif ($type eq $smbfs_fs || $type eq "cifs") {
print &ui_table_row($text{'linux_nounix'},
&ui_yesno_radio("smbfs_nounix",
defined($options{"nounix"})));
print &ui_table_row($text{'linux_cvers'},
&ui_opt_textbox("smbfs_vers", $options{"vers"},
5, $text{'linux_auto'}));
}
}
elsif ($type eq "reiserfs") {
@@ -2123,6 +2127,13 @@ elsif ($_[0] eq $smbfs_fs || $_[0] eq "cifs") {
delete($options{'nounix'});
if ($in{'smbfs_nounix'}) { $options{'nounix'} = ''; }
delete($options{'vers'});
if (!$in{'smbfs_vers_def'}) {
$in{'smbfs_vers'} =~ /^[0-9\.]+$/ ||
&error($text{'linux_ecvers'});
$options{'vers'} = $in{'smbfs_vers'};
}
}
}
elsif ($_[0] eq "reiserfs") {

View File

@@ -53,9 +53,7 @@ elsif (!$mysql_version) {
&ui_print_footer("/", $text{'index'});
exit;
}
open(VERSION, ">$module_config_directory/version");
print VERSION $mysql_version,"\n";
close(VERSION);
&save_mysql_version($mysql_version);
# Check if MYSQL_PWD works
($r, $rout) = &is_mysql_running();

View File

@@ -1 +1 @@
1.830
1.831

View File

@@ -52,9 +52,9 @@ $email ||= "root\@$doms[0]";
# Create a challenges directory under the web root
my $challenge = "$webroot/.well-known/acme-challenge";
my @st = stat($webroot);
my $user = getpwuid($st[4]);
if (!-d $challenge) {
my @st = stat($webroot);
my $user = getpwuid($st[4]);
my $cmd = "mkdir -p -m 755 ".quotemeta($challenge);
if ($user && $user ne "root") {
$cmd = &command_as_user($user, 0, $cmd);
@@ -65,6 +65,17 @@ if (!-d $challenge) {
}
}
# Create a .htaccess file to ensure the directory is accessible
my $htaccess = "$challenge/.htaccess";
if (!-r $htaccess) {
&open_tempfile(HT, ">$htaccess");
&print_tempfile(HT, "AuthType None\n");
&print_tempfile(HT, "Require all granted\n");
&print_tempfile(HT, "Satisfy any\n");
&close_tempfile(HT);
&set_ownership_permissions($user, undef, 0755, $htaccess);
}
if ($letsencrypt_cmd && -d "/etc/letsencrypt/accounts") {
# Use the native Let's Encrypt client if possible
my $temp = &transname();