Compare commits

...

88 Commits
1.997 ... 1.999

Author SHA1 Message Date
Jamie Cameron
2238995092 New version bump 2022-08-04 02:23:26 -07:00
iliajie
f7397080bc Merge remote-tracking branch 'origin/master' 2022-08-03 17:17:59 +03:00
iliajie
debf1673d9 Update CHANGELOG.md 2022-08-03 17:17:45 +03:00
Jamie Cameron
9fbf8de8db Merge pull request #1710 from webmin/dev/fix-get-slaves-ipv6
Fix get slave IPv6 address
2022-08-02 15:52:05 -07:00
Jamie Cameron
522d2e0d1b Merge pull request #1709 from webmin/dev/fix-miniserv-message-on-reloads
Fix `miniserv` message sent on reloads
2022-08-02 15:33:47 -07:00
iliajie
382ba23135 Fix to use a new set svg icons for servers 2022-08-03 01:19:51 +03:00
iliajie
6fc9dbe9c6 Update CHANGELOG.md 2022-08-03 00:49:01 +03:00
iliajie
b22b3ac2db Fix Oracle Linux support 2022-08-02 23:56:38 +03:00
iliajie
6ce312f734 Fix get slave IPv6 address 2022-08-02 13:51:15 +03:00
iliajie
7265005c53 Fix miniserv message sent on reloads 2022-08-02 13:34:12 +03:00
Jamie Cameron
d43fc5fa32 Allow IPv6 addresses for slaves https://forum.virtualmin.com/t/i-need-some-information/116013/37 2022-08-02 03:26:00 -07:00
Jamie Cameron
effc1ec35f Link to release notes without release version, because we only use the release for re-packaging 2022-08-02 02:48:50 -07:00
iliajie
1b932d8706 Fix Webmin release note message 2022-08-02 00:01:58 +03:00
Jamie Cameron
5c6f6d488d Show link to release notes https://github.com/webmin/webmin/issues/1707 2022-08-01 13:45:31 -07:00
iliajie
fc4f6af8e4 Fix Ubuntu release notes links 2022-08-01 23:13:26 +03:00
iliajie
739184c178 Fix version parsing to avoid warnings
(`Argument "22.04.1" isn't numeric in int`)
2022-08-01 22:17:07 +03:00
iliajie
bbc2db2d13 Fix numeric comparisons https://github.com/webmin/authentic-theme/issues/1612 2022-08-01 21:59:29 +03:00
Jamie Cameron
5c2e599cb8 Merge pull request #1708 from webmin/dev/useradmin-stricter-home-dir-perms
Fix home directory stricter default permissions
2022-08-01 11:13:06 -07:00
iliajie
58cbbc776a Fix home directory stricter default permissions 2022-08-01 21:12:03 +03:00
Jamie Cameron
16cb136a8e Merge pull request #1702 from webmin/dev/fix-time-module
Fix to hide time selection for Linux systems
2022-08-01 11:01:48 -07:00
iliajie
e6ec53f8e8 Keys don't need a return anymore 2022-08-01 20:13:51 +03:00
iliajie
b82dccd101 Fix to reserve hidden config option in a right (simpler) way 2022-08-01 20:12:32 +03:00
iliajie
ca61aa9ce5 Merge remote-tracking branch 'origin/master' 2022-08-01 19:35:43 +03:00
Jamie Cameron
143052b3a7 Merge branch 'master' of github.com:webmin/webmin 2022-08-01 09:16:40 -07:00
iliajie
25c27ce6c0 Update icons (use vector) for Servers Index module 2022-08-01 18:35:17 +03:00
iliajie
713272e726 Fix to support SVG icons for servers 2022-08-01 18:11:56 +03:00
iliajie
2f0981a7d4 Fix to use config_pre_load either way 2022-08-01 16:19:09 +03:00
iliajie
5723410156 Fix not to use config_preserve sub 2022-08-01 16:15:17 +03:00
iliajie
3c96c396f2 Fix to send HUP signal on reload instead 2022-08-01 14:55:45 +03:00
iliajie
bab5b7bc9f Fix to display fail2ban.local even if empty #1661 2022-08-01 00:18:45 +03:00
iliajie
d1d958bd6e Update list of dependencies 2022-07-31 22:05:42 +03:00
Jamie Cameron
f87a247327 Interface filenames can have a dash in them https://github.com/webmin/webmin/issues/1705 2022-07-31 09:46:02 -07:00
iliajie
626c625571 OpenSSH deprecated UsePrivilegeSeparation staring 7.5 (years ago)
... making it mandatory - https://www.openssh.com/txt/release-7.5
2022-07-30 13:30:27 +03:00
iliajie
5b359e9043 Fix not to display edit manually button if forbidden 2022-07-30 04:02:31 +03:00
iliajie
32507142ae Fix not to print edit manually icon if forbidden 2022-07-30 03:51:11 +03:00
iliajie
dcf97d83af Fix to preserve only if option is found in old config 2022-07-30 01:22:45 +03:00
iliajie
1bb7128ef2 Fix to use a new API to preserve existing config options (when hidden) 2022-07-30 01:03:22 +03:00
iliajie
e620256af4 Fix to revert change for testing config order 2022-07-30 01:02:15 +03:00
iliajie
de3b01d083 Add to preserve hidden config options 2022-07-30 01:00:59 +03:00
iliajie
42020b6598 Fix to hide time selection for Linux systems 2022-07-29 23:54:40 +03:00
iliajie
3de1f1ba2f Update CHANGELOG.md 2022-07-27 02:55:35 +03:00
iliajie
efa37b1c87 Update CHANGELOG.md (1.998) 2022-07-27 02:24:04 +03:00
iliajie
8f65e8f47a Fix default stop command for systemd units 2022-07-26 17:47:43 +03:00
Jamie Cameron
e4368046c8 New version bump 2022-07-24 14:01:52 -07:00
Jamie Cameron
76ce2c603f Merge branch 'master' of github.com:webmin/webmin 2022-07-24 13:10:43 -07:00
Jamie Cameron
b1e11d360d Fix version detection to deal with numbers like 3.14 https://forum.virtualmin.com/t/modsec-audit-log-impervious-to-log-file-rotation-settings/116142/4 2022-07-24 13:10:15 -07:00
Jamie Cameron
0d4ec2698f Merge pull request #1697 from webmin/dev/fdisk-improvements
Add `fdisk` GPT improvements
2022-07-24 13:04:42 -07:00
iliajie
5ea16f73b0 Handle the case when mode is set to fdisk and parted installed 2022-07-23 15:43:58 +03:00
iliajie
7aa4b6add0 Fix not to print redundant if warning already printed 2022-07-23 15:14:01 +03:00
iliajie
c984f3b57f Fix to display GPT with fdisk but don't edit 2022-07-23 15:04:31 +03:00
iliajie
ae05b815b2 Fix to display extent graphs in percents to fill nicely 2022-07-23 14:22:20 +03:00
iliajie
06cc942706 Add fdisk GPT improvements 2022-07-23 02:28:35 +03:00
Jamie Cameron
a10f4973c2 Merge branch 'master' of github.com:webmin/webmin 2022-07-22 12:09:20 -07:00
Jamie Cameron
8f84f1ebd4 Better handle out of order lines https://forum.virtualmin.com/t/perl-execution-error-when-trying-to-edit-an-lvm-through-webmin/116129 2022-07-22 12:06:34 -07:00
iliajie
d416eace1b Fix PHPINI Ubuntu module config (where did the tabs go?) 2022-07-22 18:35:47 +03:00
iliajie
9b658f07bc Fix SSH configs 2022-07-22 18:01:09 +03:00
iliajie
81f763d241 Fix Postfix configs 2022-07-22 15:20:50 +03:00
iliajie
a7dac2e806 Fix new line 2022-07-22 14:59:20 +03:00
Jamie Cameron
ec7d0465d1 Merge branch 'master' of github.com:webmin/webmin 2022-07-21 14:27:06 -07:00
Jamie Cameron
a4235588f4 Add support for unix extensions option https://github.com/webmin/webmin/issues/1695 2022-07-21 14:06:11 -07:00
iliajie
06d2e37273 Update CHANGELOG.md (upcoming 1.998) 2022-07-21 14:32:07 +03:00
Jamie Cameron
2f95f2ac38 Merge pull request #1694 from webmin/dev/apache-list-hosts-in-table
Fix to display hosts in table in Apache module
2022-07-20 13:35:09 -07:00
iliajie
3ca1caf561 Fix to display hosts in table in Apache module 2022-07-20 21:56:34 +03:00
iliajie
7096c0f998 Fix to resolve conflict for #1662 PR 2022-07-20 20:25:10 +03:00
iliajie
0002827690 Fix not to disable warnings for Gray Theme 2022-07-20 20:21:29 +03:00
Jamie Cameron
49cf952932 Merge pull request #1691 from webmin/dev/improve-module-configs
Fix more modules config files
2022-07-20 09:48:09 -07:00
iliajie
058cd60f4d Fix not to change show_list in this PR 2022-07-20 19:33:28 +03:00
Jamie Cameron
eb36da5e42 Merge pull request #1693 from webmin/dev/phpini-configs-master
Add improvements for searching and naming PHP configs (from master)
2022-07-20 09:26:21 -07:00
iliajie
d2480702a1 Add improvements for searching and naming PHP configs (from master) 2022-07-20 17:43:30 +03:00
iliajie
d75edf5e75 Add CentOS Stream Linux support 2022-07-20 14:44:33 +03:00
iliajie
a2110c579d Fix to take away show_list from this PR 2022-07-20 12:43:54 +03:00
iliajie
af868656ea Fix more modules config files 2022-07-20 03:39:23 +03:00
Jamie Cameron
ed5291bf40 Merge branch 'master' of github.com:webmin/webmin 2022-07-18 09:30:03 -07:00
Jamie Cameron
36f1e4aef3 Use cron default path https://sourceforge.net/p/webadmin/bugs/5571/ 2022-07-18 09:29:15 -07:00
Jamie Cameron
c1ad870830 Merge pull request #1690 from webmin/dev/bind-configs
Fix BIND configs for modern distros
2022-07-17 14:52:57 -07:00
iliajie
7f0d7fe741 Add missing dnssec_period option 2022-07-17 22:31:49 +03:00
iliajie
98b8b7e9c6 Fix not to touch dnssectools in this PR 2022-07-17 22:29:15 +03:00
iliajie
fa4b624187 Remove for Usermin only, as Webmin runs uninstalls 2022-07-17 21:10:47 +03:00
iliajie
af58e37bea Fix to run uninstalls conditionally 2022-07-17 21:02:18 +03:00
iliajie
6e00a54538 Merge remote-tracking branch 'origin/master' 2022-07-17 18:55:30 +03:00
iliajie
e0a5c4e507 Clear manifest files too 2022-07-17 15:51:28 +03:00
Jamie Cameron
8d78254db7 Don't bother with a test mount, as we don't know all the mount options https://github.com/webmin/webmin/issues/1688 2022-07-16 21:31:12 -07:00
Jamie Cameron
c2de5f067f Merge branch 'master' of github.com:webmin/webmin 2022-07-16 16:54:51 -07:00
Jamie Cameron
1b655f3646 Correct AlmaLinux name 2022-07-16 16:54:44 -07:00
iliajie
32798e18a4 Fix error message paddings 2022-07-17 01:00:27 +03:00
iliajie
c996a14450 Fix BIND configs for modern distros 2022-07-17 00:49:31 +03:00
Jamie Cameron
226620c7c4 Merge branch 'master' of github.com:webmin/webmin 2022-07-13 22:58:40 -07:00
Jamie Cameron
13aa152b18 Fix eval test https://github.com/webmin/webmin/issues/1685 2022-07-13 22:58:23 -07:00
184 changed files with 1752 additions and 232 deletions

View File

@@ -1,5 +1,26 @@
## Changelog
#### 1.999 (August 4, 2022)
* Fix to allow IPv6 addresses for slaves in BIND module
* Fix to send `HUP` signal on reload with `systemd`
* Fix icons in Servers Index module for newer distros (Alma and Rocky)
* Fix to remove depricated option `UsePrivilegeSeparation` with OpenSSH 7.5+
* Fix Oracle Linux support
* Fix Ubuntu release notes links
* Add Webmin release note message
* Add latest Authentic [theme update](https://github.com/webmin/authentic-theme/releases/tag/19.99) with number of bug fixes
#### 1.998 (July 25, 2022)
* Fix Apache, BIND, MySQL, ProFTPd and other modules configs on newest distros for new installs
* Fix to use Cron default path when run from UI
* Fix post uninstall cleanups
* Fix version detection bug for Log File Rotation module
* Add improvements to Partitions on Local Disks module
* Add better support for CentOS Stream Linux for new installs
* Add improvements for searching and naming global PHP configs files
* Add support for unix extensions option for Samba module https://github.com/webmin/webmin/issues/1695
* Add latest Authentic [theme update](https://github.com/webmin/authentic-theme/releases/tag/19.98) with various bug fixes and small improvements
#### 1.997 (July 12, 2022)
* Add support for mirror and RAID volumes in LVM module
* Add latest Authentic [theme update](https://github.com/webmin/authentic-theme/releases/tag/19.97) with nice new features in File Manager and other fixes

View File

@@ -31,7 +31,7 @@ Webmin can be installed in two different ways:
1. By downloading a pre-built package, available for different distributions (CentOS, Fedora, SuSE, Mandriva, Debian, Ubuntu, Solaris and [other](http://www.webmin.com/support.html)) under [latest release assets](https://github.com/webmin/webmin/releases/latest) or from our [download page](http://webmin.com/download.html);
<kbd>Note: It is highly recommended to [add repository](https://doxfer.webmin.com/Webmin/Installation) to your system for having automatic updates.</kbd>
2. By downloading, extracting [source file](https://prdownloads.sourceforge.net/webadmin/webmin-1.997.tar.gz), and running [_setup.sh_](http://www.webmin.com/tgz.html) script, with no arguments, which will setup to run it directly from this directory, or with a command-line argument, such as targeted directory.
2. By downloading, extracting [source file](https://prdownloads.sourceforge.net/webadmin/webmin-1.999.tar.gz), and running [_setup.sh_](http://www.webmin.com/tgz.html) script, with no arguments, which will setup to run it directly from this directory, or with a command-line argument, such as targeted directory.
<kbd>Note: If you are installing Webmin [on Windows](http://www.webmin.com/windows.html) system, you must run the command `perl setup.pl` instead. The Windows version depends on several programs, and modules that may not be part of the standard distribution. You will need _process.exe_ command, _sc.exe_ command, and _Win32::Daemon_ Perl module.</kbd>
## Documentation

View File

@@ -1,4 +1,4 @@
show_list=0
show_list=1
httpd_dir=/etc/httpd
httpd_path=/usr/sbin/httpd
mime_types=/etc/mime.types

View File

@@ -1,9 +1,9 @@
show_list=0
show_list=1
httpd_dir=/etc/httpd
httpd_path=/usr/sbin/httpd
mime_types=/etc/mime.types
start_cmd=systemctl start httpd.service
apply_cmd=/usr/sbin/apachectl graceful
apply_cmd=systemctl reload httpd.service
stop_cmd=systemctl stop httpd.service
show_order=0
max_servers=100
@@ -15,5 +15,5 @@ test_apachectl=1
auto_mods=1
show_names=0
allow_virtualmin=0
pid_file=/etc/httpd/run/httpd.pid
pid_file=/run/httpd/httpd.pid
format_config=1

View File

@@ -0,0 +1,19 @@
show_list=1
httpd_dir=/etc/httpd
httpd_path=/usr/sbin/httpd
mime_types=/etc/mime.types
start_cmd=systemctl start httpd.service
apply_cmd=systemctl reload httpd.service
stop_cmd=systemctl stop httpd.service
show_order=0
max_servers=100
test_config=1
test_manual=0
apachectl_path=/usr/sbin/apachectl
test_always=0
test_apachectl=1
auto_mods=1
show_names=0
allow_virtualmin=0
pid_file=/run/httpd/httpd.pid
format_config=1

View File

@@ -0,0 +1,19 @@
show_list=1
httpd_dir=/etc/httpd
httpd_path=/usr/sbin/httpd
mime_types=/etc/mime.types
start_cmd=systemctl start httpd.service
apply_cmd=systemctl reload httpd.service
stop_cmd=systemctl stop httpd.service
show_order=0
max_servers=100
test_config=1
test_manual=0
apachectl_path=/usr/sbin/apachectl
test_always=0
test_apachectl=1
auto_mods=1
show_names=0
allow_virtualmin=0
pid_file=/run/httpd/httpd.pid
format_config=1

View File

@@ -1,4 +1,4 @@
show_list=0
show_list=1
httpd_dir=/etc/httpd
httpd_path=/usr/sbin/httpd
mime_types=/etc/mime.types

View File

@@ -1,4 +1,4 @@
show_list=0
show_list=1
httpd_dir=/etc/httpd
httpd_path=/usr/sbin/httpd
mime_types=/etc/mime.types

View File

@@ -0,0 +1,23 @@
httpd_dir=/etc/apache2
httpd_path=/usr/sbin/apache2
httpd_conf=/etc/apache2/apache2.conf
mime_types=/etc/mime.types
start_cmd=systemctl start apache2
apply_cmd=systemctl reload apache2
stop_cmd=systemctl stop apache2
show_order=0
max_servers=100
test_config=1
test_manual=0
test_always=0
test_apachectl=1
virt_file=/etc/apache2/sites-available
link_dir=/etc/apache2/sites-enabled
auto_mods=1
defines_file=/etc/apache2/envvars
defines_name=APACHE_ARGUMENTS
apachectl_path=/usr/sbin/apache2ctl
show_names=0
allow_virtualmin=0
format_config=1
show_list=1

View File

@@ -1,9 +1,9 @@
show_list=0
show_list=1
httpd_dir=/etc/httpd
httpd_path=/usr/sbin/httpd
mime_types=/etc/mime.types
start_cmd=systemctl start httpd.service
apply_cmd=/usr/sbin/apachectl graceful
apply_cmd=systemctl reload httpd.service
stop_cmd=systemctl stop httpd.service
show_order=0
max_servers=100
@@ -15,4 +15,5 @@ test_apachectl=1
auto_mods=1
show_names=0
allow_virtualmin=0
pid_file=/run/httpd/httpd.pid
format_config=1

View File

@@ -68,8 +68,8 @@ print "<table border><tr><td $cb><pre>\n\n";
&show_directives($conf, 0);
print "</pre></td></tr></table>\n";
print "</td></tr>\n";
if ($in{'virt'} || $in{'file'} || defined($in{'idx'})) {
if ($access{'types'} eq '*' &&
($in{'virt'} || $in{'file'} || defined($in{'idx'}))) {
print "<tr>\n";
print "<td><form action=manual_form.cgi>";
print "<input type=submit name=these value='$text{'show_these'}'>";

View File

@@ -2834,13 +2834,14 @@ foreach my $slave (@slaves) {
my @otherslaves;
if ($config{'other_slaves'}) {
@otherslaves = grep { $_ ne '' }
map { &to_ipaddress($_->{'host'}) }
map { &to_ipaddress($_->{'host'}) ||
&to_ip6address($_->{'host'}) }
grep { $_ ne $slave } @slaves;
}
if ($config{'extra_slaves'}) {
push(@otherslaves,
grep { $_ ne '' }
map { &to_ipaddress($_) }
map { &to_ipaddress($_) || &to_ip6address($_) }
split(/\s+/, $config{'extra_slaves'}));
}
if ($moreslaves) {

View File

@@ -3,8 +3,6 @@ named_path=/usr/sbin/named
named_conf=/etc/named.conf
show_list=1
records_order=0
start_cmd=service named start
stop_cmd=service named stop
max_zones=50
rev_def=0
support_aaaa=1
@@ -12,7 +10,7 @@ allow_comments=0
allow_wild=1
allow_long=0
master_ttl=1
pid_file=/var/run/named.pid /run/named.pid
pid_file=/run/named/named.pid
whois_cmd=whois
short_names=0
updserial_def=0
@@ -42,7 +40,6 @@ keygen=dnssec-keygen
signzone=dnssec-signzone
checkconf=named-checkconf
other_slaves=1
restart_cmd=restart
keygen=dnssec-keygen
tmpl_dnssec=0
dnssec_period=21
@@ -54,3 +51,6 @@ dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid
force_random=0
spf_record=0
dnssec_info=1
start_cmd=systemctl start named.service
stop_cmd=systemctl stop named.service
restart_cmd=systemctl reload named.service

View File

@@ -0,0 +1,52 @@
soa_style=1
named_path=/usr/sbin/named
named_conf=/etc/named.conf
show_list=1
records_order=0
max_zones=50
rev_def=0
support_aaaa=1
allow_comments=0
allow_wild=1
allow_long=0
master_ttl=1
pid_file=/run/named/named.pid
whois_cmd=whois
short_names=0
updserial_def=0
updserial_on=1
updserial_man=1
ndc_cmd=ndc
forwardzonefilename_format=ZONE.hosts
reversezonefilename_format=ZONE.rev
rev_must=0
ipv6_mode=1
allow_underscore=1
by_view=0
confirm_zone=1
confirm_rec=0
no_chroot=0
relative_paths=0
rndc_cmd=rndc
master_dir=/var/named
slave_dir=/var/named/slaves
no_pid_chroot=0
soa_start=0
rndc_conf=/etc/rndc.conf
rndcconf_cmd=rndc-confgen
largezones=0
checkzone=named-checkzone
keygen=dnssec-keygen
signzone=dnssec-signzone
checkconf=named-checkconf
other_slaves=1
keygen=dnssec-keygen
tmpl_dnssec=0
dnssec_period=21
tmpl_dnssec_dt=1
force_random=0
spf_record=0
dnssec_info=1
start_cmd=systemctl start named.service
stop_cmd=systemctl stop named.service
restart_cmd=systemctl reload named.service

View File

@@ -0,0 +1,56 @@
soa_style=1
named_path=/usr/sbin/named
named_conf=/etc/named.conf
show_list=1
records_order=0
max_zones=50
rev_def=0
support_aaaa=1
allow_comments=0
allow_wild=1
allow_long=0
master_ttl=1
pid_file=/run/named/named.pid
whois_cmd=whois
short_names=0
updserial_def=0
updserial_on=1
updserial_man=1
ndc_cmd=ndc
forwardzonefilename_format=ZONE.hosts
reversezonefilename_format=ZONE.rev
rev_must=0
ipv6_mode=1
allow_underscore=1
by_view=0
confirm_zone=1
confirm_rec=0
no_chroot=0
relative_paths=0
rndc_cmd=rndc
master_dir=/var/named
slave_dir=/var/named/slaves
no_pid_chroot=0
soa_start=0
rndc_conf=/etc/rndc.conf
rndcconf_cmd=rndc-confgen
largezones=0
checkzone=named-checkzone
keygen=dnssec-keygen
signzone=dnssec-signzone
checkconf=named-checkconf
other_slaves=1
keygen=dnssec-keygen
tmpl_dnssec=0
dnssec_period=21
tmpl_dnssec_dt=1
dnssectools_conf=/etc/dnssec-tools/dnssec-tools.conf
dnssectools_rollrec=/var/named/system.rollrec
dnssectools_keydir=/var/named/dtkeys
dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid
force_random=0
spf_record=0
dnssec_info=1
start_cmd=systemctl start named.service
stop_cmd=systemctl stop named.service
restart_cmd=systemctl reload named.service

View File

@@ -0,0 +1,56 @@
soa_style=1
named_path=/usr/sbin/named
named_conf=/etc/named.conf
show_list=1
records_order=0
max_zones=50
rev_def=0
support_aaaa=1
allow_comments=0
allow_wild=1
allow_long=0
master_ttl=1
pid_file=/run/named/named.pid
whois_cmd=whois
short_names=0
updserial_def=0
updserial_on=1
updserial_man=1
ndc_cmd=ndc
forwardzonefilename_format=ZONE.hosts
reversezonefilename_format=ZONE.rev
rev_must=0
ipv6_mode=1
allow_underscore=1
by_view=0
confirm_zone=1
confirm_rec=0
no_chroot=0
relative_paths=0
rndc_cmd=rndc
master_dir=/var/named
slave_dir=/var/named/slaves
no_pid_chroot=0
soa_start=0
rndc_conf=/etc/rndc.conf
rndcconf_cmd=rndc-confgen
largezones=0
checkzone=named-checkzone
keygen=dnssec-keygen
signzone=dnssec-signzone
checkconf=named-checkconf
other_slaves=1
keygen=dnssec-keygen
tmpl_dnssec=0
dnssec_period=21
tmpl_dnssec_dt=1
dnssectools_conf=/etc/dnssec-tools/dnssec-tools.conf
dnssectools_rollrec=/var/named/system.rollrec
dnssectools_keydir=/var/named/dtkeys
dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid
force_random=0
spf_record=0
dnssec_info=1
start_cmd=systemctl start named.service
stop_cmd=systemctl stop named.service
restart_cmd=systemctl reload named.service

View File

@@ -3,8 +3,6 @@ named_path=/usr/sbin/named
named_conf=/etc/named.conf
show_list=1
records_order=0
start_cmd=service named start
stop_cmd=service named stop
max_zones=50
rev_def=0
support_aaaa=1
@@ -12,7 +10,7 @@ allow_comments=0
allow_wild=1
allow_long=0
master_ttl=1
pid_file=/var/run/named.pid /run/named.pid
pid_file=/run/named/named.pid
whois_cmd=whois
short_names=0
updserial_def=0
@@ -42,7 +40,6 @@ keygen=dnssec-keygen
signzone=dnssec-signzone
checkconf=named-checkconf
other_slaves=1
restart_cmd=restart
keygen=dnssec-keygen
tmpl_dnssec=0
dnssec_period=21
@@ -54,3 +51,6 @@ dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid
force_random=0
spf_record=0
dnssec_info=1
start_cmd=systemctl start named.service
stop_cmd=systemctl stop named.service
restart_cmd=systemctl reload named.service

View File

@@ -0,0 +1,50 @@
soa_style=1
named_path=/usr/sbin/named
named_conf=/etc/bind/named.conf
show_list=1
records_order=0
max_zones=50
rev_def=0
support_aaaa=1
allow_comments=0
allow_wild=1
allow_long=0
master_ttl=1
whois_cmd=whois
short_names=0
updserial_def=0
updserial_on=1
updserial_man=1
ndc_cmd=ndc
forwardzonefilename_format=ZONE.hosts
reversezonefilename_format=ZONE.rev
rev_must=0
ipv6_mode=1
allow_underscore=1
by_view=0
confirm_zone=1
confirm_rec=0
no_chroot=0
relative_paths=0
rndc_cmd=rndc
pid_file=/var/run/named/named.pid
zones_file=/etc/bind/named.conf.local
master_dir=/var/lib/bind
slave_dir=/var/lib/bind
no_pid_chroot=0
soa_start=0
rndc_conf=/etc/bind/rndc.conf
rndcconf_cmd=rndc-confgen
largezones=0
checkzone=named-checkzone
keygen=dnssec-keygen
signzone=dnssec-signzone
checkconf=named-checkconf
other_slaves=1
force_random=0
spf_record=0
dnssec_info=1
start_cmd=systemctl start bind9.service
stop_cmd=systemctl stop bind9.service
restart_cmd=systemctl reload bind9.service
dnssec_period=21

View File

@@ -28,12 +28,10 @@ by_view=0
confirm_zone=1
confirm_rec=0
no_chroot=0
chroot=/var/named/chroot
relative_paths=0
rndc_cmd=rndc
master_dir=/var/named
slave_dir=/var/named/slaves
auto_chroot=sh -c '. /etc/sysconfig/named && echo "$ROOTDIR"'
no_pid_chroot=0
soa_start=0
rndc_conf=/etc/rndc.conf
@@ -47,3 +45,4 @@ other_slaves=1
force_random=0
spf_record=0
dnssec_info=1
restart_cmd=systemctl reload named.service

View File

@@ -16,7 +16,7 @@ foreach $h (@hosts) {
next if (!$s);
push(@titles, &server_name($s));
push(@links, "edit_host.cgi?id=$h->{'id'}");
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.gif");
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.svg");
$gothost{$h->{'id'}}++;
}
if (@links) {

View File

@@ -84,7 +84,7 @@ print &ui_buttons_end();
# Show hosts with the package
print &ui_hr();
print &ui_subheading($text{'edit_hosts'});
@icons = map { "/servers/images/$_->{'type'}.gif" } @got;
@icons = map { "/servers/images/$_->{'type'}.svg" } @got;
@links = map { "edit_host.cgi?id=$_->{'id'}" } @got;
@titles = map { ($_->{'desc'} ? $_->{'desc'} :
$_->{'realhost'} ? "$_->{'realhost'}:$_->{'port'}" :

View File

@@ -30,7 +30,7 @@ foreach $h (@hosts) {
"$s->{'host'}:$s->{'port'}")."<br>".
&text('index_count', $count));
push(@links, "edit_host.cgi?id=$h->{'id'}");
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.gif");
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.svg");
push(@installed, $count);
$gothost{$h->{'id'}}++;
}

View File

@@ -94,8 +94,8 @@ foreach $h (@hosts) {
if ($og) {
local ($s) = grep { $_->{'id'} == $h->{'id'} } @servers;
push(@icons, &get_webprefix() ?
(&get_webprefix()."/servers/images/".$s->{'type'}.".gif") :
("../servers/images/".$s->{'type'}.".gif"));
(&get_webprefix()."/servers/images/".$s->{'type'}.".svg") :
("../servers/images/".$s->{'type'}.".svg"));
push(@links, "edit_host.cgi?id=$h->{'id'}");
push(@titles, $s->{'desc'} ? $s->{'desc'} : $s->{'host'});
}

View File

@@ -409,8 +409,8 @@ foreach $h (@hosts) {
if ($ou) {
local ($s) = grep { $_->{'id'} == $h->{'id'} } @servers;
push(@icons, &get_webprefix() ?
(&get_webprefix()."/servers/images/".$s->{'type'}.".gif") :
("../servers/images/".$s->{'type'}.".gif"));
(&get_webprefix()."/servers/images/".$s->{'type'}.".svg") :
("../servers/images/".$s->{'type'}.".svg"));
push(@links, "edit_host.cgi?id=$h->{'id'}");
push(@titles, $s->{'desc'} ? $s->{'desc'} : $s->{'host'});
}

View File

@@ -27,7 +27,7 @@ foreach $h (@hosts) {
push(@titles, &server_name($s));
push(@links, $link);
push(@icons, &get_webprefix()."/servers/images/".
$s->{'type'}.".gif");
$s->{'type'}.".svg");
push(@installed, @{$h->{'packages'}});
$gothost{$h->{'id'}}++;
}

View File

@@ -186,7 +186,7 @@ print "</tr></table>\n";
# Show hosts with the module or theme
print &ui_hr();
print &ui_subheading($text{'edit_hosts'});
@icons = map { "/servers/images/$_->{'type'}.gif" } @got;
@icons = map { "/servers/images/$_->{'type'}.svg" } @got;
@links = map { "edit_host.cgi?id=$_->{'id'}" } @got;
@titles = map { &server_name($_).
($_->{'module'}->{'version'} ? " ($text{'host_version2'} $_->{'module'}->{'version'})" : "") } @got;

View File

@@ -25,7 +25,7 @@ foreach $h (@hosts) {
push(@titles, &server_name($s)."<br>".
&text('index_version', $h->{'version'}));
push(@links, "edit_host.cgi?id=$h->{'id'}");
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.gif");
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.svg");
$gothost{$h->{'id'}}++;
}
if (@links) {

View File

@@ -147,7 +147,7 @@ print "</tr></table>\n";
# Show hosts with the group
print &ui_hr();
print &ui_subheading($text{'group_hosts'});
@icons = map { "/servers/images/$_->{'type'}.gif" } @got;
@icons = map { "/servers/images/$_->{'type'}.svg" } @got;
@links = map { "edit_host.cgi?id=$_->{'id'}" } @got;
@titles = map { &server_name($_) } @got;
&icons_table(\@links, \@titles, \@icons);

View File

@@ -235,7 +235,7 @@ print "</tr></table>\n";
# Show hosts with the module or theme
print &ui_hr();
print &ui_subheading($text{'edit_hosts'});
@icons = map { "/servers/images/$_->{'type'}.gif" } @got;
@icons = map { "/servers/images/$_->{'type'}.svg" } @got;
@links = map { "edit_host.cgi?id=$_->{'id'}" } @got;
@titles = map { &server_name($_).
($_->{'module'}->{'version'} ? " ($text{'host_version2'} $_->{'module'}->{'version'})" : "") } @got;

View File

@@ -211,7 +211,7 @@ print "</tr></table>\n";
# Show hosts with the user
print &ui_hr();
print &ui_subheading($text{'user_hosts'});
@icons = map { "/servers/images/$_->{'type'}.gif" } @got;
@icons = map { "/servers/images/$_->{'type'}.svg" } @got;
@links = map { "edit_host.cgi?id=$_->{'id'}" } @got;
@titles = map { &server_name($_) } @got;
&icons_table(\@links, \@titles, \@icons);

View File

@@ -27,7 +27,7 @@ foreach $h (@hosts) {
push(@titles, &server_name($s)."<br>".
&text('index_version', $h->{'version'}));
push(@links, "edit_host.cgi?id=$h->{'id'}");
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.gif");
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.svg");
$gothost{$h->{'id'}}++;
}
if (@links) {

View File

@@ -59,8 +59,8 @@ foreach $o (@lang_order_list) {
# Call any config pre-load function
if (&foreign_func_exists($module, 'config_pre_load')) {
&foreign_call($module, "config_pre_load", \%info, \@info_order)
&foreign_call($module, "config_pre_load", \%einfo)
&foreign_call($module, "config_pre_load", \%info, \@info_order);
&foreign_call($module, "config_pre_load", \%einfo);
}
@info_order = &unique(@info_order);
@@ -276,6 +276,15 @@ if ($section) {
@info_order = &config_in_section($section, \@info_order, \%info);
}
# If config fields are conditional (not displayed)
# make sure to preserve system default values to
# prevent changing behaviour of a module
if (&foreign_exists($module) &&
&foreign_require($module) &&
&foreign_func_exists($module, 'config_pre_load')) {
&foreign_call($module, "config_pre_load", \%info, \@info_order);
}
# Actually parse the inputs
foreach my $c (@info_order) {
next if ($canconfig && !$canconfig->{$c});

View File

@@ -33,6 +33,7 @@ else {
&clean_environment();
# Set cron environment variables
$ENV{'PATH'} = "/usr/bin:/bin";
foreach $e (&read_envs($job->{'user'})) {
$ENV{$1} = $2 if ($e =~ /^(\S+)\s+(.*)$/);
}

View File

@@ -0,0 +1,16 @@
start_cmd=systemctl start dhcpd
stop_cmd=systemctl stop dhcpd
restart_cmd=service dhcpd restart
dhcpd_conf=/etc/dhcp/dhcpd.conf
dhcpd_path=/usr/sbin/dhcpd
lease_file=/var/lib/dhcpd/dhcpd.leases
lease_sort=0
dhcpd_nocols=5
lease_tz=0
interfaces_type=redhat
show_ip=0
show_mac=0
group_name=0
display_max=100
desc_name=0
lease_vendor=0

View File

@@ -0,0 +1,16 @@
start_cmd=systemctl start dhcpd
stop_cmd=systemctl stop dhcpd
restart_cmd=service dhcpd restart
dhcpd_conf=/etc/dhcp/dhcpd.conf
dhcpd_path=/usr/sbin/dhcpd
lease_file=/var/lib/dhcpd/dhcpd.leases
lease_sort=0
dhcpd_nocols=5
lease_tz=0
interfaces_type=redhat
show_ip=0
show_mac=0
group_name=0
display_max=100
desc_name=0
lease_vendor=0

View File

@@ -0,0 +1,4 @@
dovecot=/usr/sbin/dovecot
dovecot_config=/etc/dovecot/dovecot.conf
init_script=dovecot.service
pid_file=/run/dovecot/master.pid

View File

@@ -0,0 +1,4 @@
dovecot=/usr/sbin/dovecot
dovecot_config=/etc/dovecot/dovecot.conf
init_script=dovecot.service
pid_file=/run/dovecot/master.pid

View File

@@ -1,4 +1,4 @@
dovecot=/usr/sbin/dovecot
dovecot_config=/etc/dovecot/dovecot.conf /etc/dovecot.conf
init_script=dovecot.service
pid_file=/var/run/dovecot/master.pid
pid_file=/run/dovecot/master.pid

View File

@@ -0,0 +1,3 @@
restart_command=service nfs restart
exports_file=/etc/exports
apply_cmd=exportfs -r

View File

@@ -0,0 +1,3 @@
restart_command=service nfs restart
exports_file=/etc/exports
apply_cmd=exportfs -r

View File

@@ -511,8 +511,8 @@ return $? ? $out : undef;
sub list_all_config_files
{
my @rv;
push(@rv, "$config{'config_dir'}/fail2ban.conf");
push(@rv, "$config{'config_dir'}/fail2ban.local");
push(@rv, "$config{'config_dir'}/fail2ban.conf");
push(@rv, glob("$config{'config_dir'}/filter.d/*.conf"));
push(@rv, glob("$config{'config_dir'}/filter.d/*.local"));
push(@rv, glob("$config{'config_dir'}/action.d/*.conf"));
@@ -521,7 +521,7 @@ push(@rv, "$config{'config_dir'}/jail.conf");
push(@rv, "$config{'config_dir'}/jail.local");
push(@rv, glob("$config{'config_dir'}/jail.d/*.conf"));
push(@rv, glob("$config{'config_dir'}/jail.d/*.local"));
return grep { -r $_ } @rv;
return grep { -r $_ || $_ =~ /fail2ban\.local$/ } @rv;
}
sub lock_all_config_files

View File

@@ -4,7 +4,6 @@
require './fdisk-lib.pl';
&ReadParse();
&can_edit_disk($in{'device'}) || &error($text{'disk_ecannot'});
$extwidth = 300;
# Get the disk
@disks = &list_disks_partitions();
@@ -13,6 +12,10 @@ $d || &error($text{'disk_egone'});
@parts = @{$d->{'parts'}};
&ui_print_header($d->{'desc'}, $text{'disk_title'}, "", undef,
@disks == 1 ? 1 : 0, @disks == 1 ? 1 : 0);
$caneditpart =
$d->{'table'} ne 'gpt' ||
($d->{'table'} eq 'gpt' &&
&has_command('parted') && $config{'mode'} ne 'fdisk');
# Work out links to add partitions
foreach $p (@parts) {
@@ -29,17 +32,22 @@ foreach $p (@parts) {
$anyfree++;
}
}
if ($regular < 4 || $disk->{'table'} ne 'msdos') {
push(@edlinks, "<a href=\"edit_part.cgi?disk=$d->{'index'}&new=1\">".
$text{'index_addpri'}."</a>");
if ($caneditpart) {
if ($regular < 4 || $disk->{'table'} ne 'msdos') {
push(@edlinks, "<a href=\"edit_part.cgi?disk=$d->{'index'}&new=1\">".
$text{'index_addpri'}."</a>");
}
if ($extended) {
push(@edlinks, "<a href=\"edit_part.cgi?disk=$d->{'index'}&new=2\">".
$text{'index_addlog'}."</a>");
}
elsif ($regular < 4 && &supports_extended()) {
push(@edlinks, "<a href=\"edit_part.cgi?disk=$d->{'index'}&new=3\">".
$text{'index_addext'}."</a>");
}
}
if ($extended) {
push(@edlinks, "<a href=\"edit_part.cgi?disk=$d->{'index'}&new=2\">".
$text{'index_addlog'}."</a>");
}
elsif ($regular < 4 && &supports_extended()) {
push(@edlinks, "<a href=\"edit_part.cgi?disk=$d->{'index'}&new=3\">".
$text{'index_addext'}."</a>");
else {
$wantsparted = 1;
}
if ($d->{'table'} eq 'unknown') {
# Must create a partition table first
@@ -65,6 +73,12 @@ if ($d->{'table'}) {
}
print &ui_links_row(\@info),"<p>\n";
if ($wantsparted) {
my $label = $config{'mode'} eq 'fdisk' ?
'edit_edisk2' : 'edit_edisk';
print "<p>$text{$label}</p>\n";
}
# Show table of partitions, if any
if (@parts) {
print &ui_links_row(\@edlinks);
@@ -84,16 +98,12 @@ if (@parts) {
# Create extent images
$ext = "";
$ext .= sprintf "<img src=images/gap.gif height=10 width=%d>",
$extwidth*($p->{'start'} - 1) /
$d->{'cylinders'};
$ext .= sprintf "<img src=images/%s.gif height=10 width=%d>",
$p->{'extended'} ? "ext" : "use",
$extwidth*($p->{'end'} - $p->{'start'}) /
$d->{'cylinders'};
$ext .= sprintf "<img src=images/gap.gif height=10 width=%d>",
$extwidth*($d->{'cylinders'} - ($p->{'end'} - 1)) /
$d->{'cylinders'};
$ext1 = int((($p->{'start'} - 1) / $d->{'cylinders'}) * 100) . "%";
$ext2 = int((($p->{'end'} - $p->{'start'}) / $d->{'cylinders'}) * 100) . "%";
$ext3 = int((($d->{'cylinders'} - ($p->{'end'} - 1)) / $d->{'cylinders'}) * 100) . "%";
$ext .= "<img src=images/gap.gif height=10 width='$ext1'>";
$ext .= sprintf "<img src=images/%s.gif height=10 width='$ext2'>", $p->{'extended'} ? "ext" : "use";
$ext .= "<img src=images/gap.gif height=10 width='$ext3'>";
# Work out usage
@stat = &device_status($p->{'device'});
@@ -116,38 +126,43 @@ if (@parts) {
print &ui_columns_end();
}
else {
print "<b>$text{'disk_none'}</b><p>\n";
print "<p>$text{'disk_none'}</p>\n"
if (!$wantsparted);
}
print &ui_links_row(\@edlinks);
# Buttons for IDE params and SMART
print &ui_hr();
print &ui_buttons_start();
my $ui_buttons_content;
if (&supports_hdparm($d)) {
print &ui_buttons_row("edit_hdparm.cgi", $text{'index_hdparm'},
$ui_buttons_content = &ui_buttons_row("edit_hdparm.cgi", $text{'index_hdparm'},
$text{'index_hdparmdesc'},
&ui_hidden("disk", $d->{'index'}));
}
if (&supports_smart($d)) {
print &ui_buttons_row("../smart-status/index.cgi", $text{'index_smart'},
$ui_buttons_content = &ui_buttons_row("../smart-status/index.cgi", $text{'index_smart'},
$text{'index_smartdesc'},
&ui_hidden("drive", $d->{'device'}));
}
if (&supports_relabel($d)) {
if ($d->{'table'} eq 'unknown') {
print &ui_buttons_row(
$ui_buttons_content = &ui_buttons_row(
"edit_relabel.cgi", $text{'index_relabel2'},
$text{'index_relabeldesc2'},
&ui_hidden("device", $d->{'device'}));
}
else {
print &ui_buttons_row(
$ui_buttons_content = &ui_buttons_row(
"edit_relabel.cgi", $text{'index_relabel'},
$text{'index_relabeldesc'},
&ui_hidden("device", $d->{'device'}));
}
}
print &ui_buttons_end();
if ($ui_buttons_content) {
print &ui_hr();
print &ui_buttons_start();
print $ui_buttons_content;
print &ui_buttons_end();
}
&ui_print_footer("", $text{'index_return'});

View File

@@ -111,19 +111,24 @@ $dev = $dinfo->{'prefix'} =~ /^\/dev\/mmcblk.*/ ?
$dinfo->{'prefix'}.$np;
print &ui_table_row($text{'edit_device'}, $dev);
if (!$in{'new'}) {
@stat = &device_status($dev);
$mounted = $stat[2];
}
# Partition type
if ($pinfo->{'extended'} || $in{'new'} == 3) {
# Extended, cannot change
print &ui_table_row($text{'edit_type'}, $text{'extended'});
}
elsif ($pinfo->{'edittype'} || $in{'new'}) {
elsif (($pinfo->{'edittype'} == 1 || $in{'new'}) && !$mounted) {
# Can change
print &ui_table_row($text{'edit_type'},
&ui_select("type",
$in{'new'} ? &default_tag() : $pinfo->{'type'},
[ map { [ $_, &tag_name($_) ] }
(sort { &tag_name($a) cmp &tag_name($b) }
&list_tags()) ]));
&list_tags($pinfo->{'dtable'})) ]));
}
else {
# Tool doesn't allow change
@@ -160,9 +165,8 @@ if ($pinfo->{'extended'}) {
}
}
elsif (!$in{'new'}) {
@stat = &device_status($dev);
if (@stat) {
$msg = $stat[2] ? 'edit_mount' : 'edit_umount';
$msg = $mounted ? 'edit_mount' : 'edit_umount';
$msg .= 'vm' if ($stat[1] eq 'swap');
$msg .= 'raid' if ($stat[1] eq 'raid');
$msg .= 'lvm' if ($stat[1] eq 'lvm');
@@ -199,7 +203,7 @@ if (($has_e2label || $has_xfs_db) && &supports_label($pinfo) && !$in{'new'}) {
}
# Show field for partition name
if (&supports_name($dinfo)) {
if (&supports_name($dinfo) && !$mounted && $pinfo->{'edittype'} != 2) {
print &ui_table_row($text{'edit_name'},
&ui_textbox("name", $pinfo->{'name'}, 20));
}
@@ -214,24 +218,24 @@ print &ui_table_end();
if ($in{'new'}) {
print &ui_form_end([ [ undef, $text{'create'} ] ]);
}
elsif (@stat && $stat[2]) {
elsif (@stat && $stat[2] &&
$pinfo->{'edittype'} != 2) {
print &ui_form_end();
print "<b>$text{'edit_inuse'}</b><p>\n";
print "$text{'edit_inuse'}\n";
}
else {
elsif ($pinfo->{'edittype'} != 2) {
print &ui_form_end([ $pinfo->{'extended'} ? ( ) :
( [ undef, $text{'save'} ] ),
[ 'delete', $text{'delete'} ] ]);
}
if (!$in{'new'} && !$pinfo->{'extended'}) {
print &ui_hr();
print &ui_buttons_start();
if (!$in{'new'} && !$pinfo->{'extended'} && $pinfo->{'edittype'} != 2) {
my $ui_buttons_content;
if (!@stat || $stat[2] == 0) {
# Show form for creating filesystem
local $rt = @stat ? $stat[1] : &conv_type($pinfo->{'type'});
print &ui_buttons_row("mkfs_form.cgi",
$ui_buttons_content = &ui_buttons_row("mkfs_form.cgi",
$text{'edit_mkfs2'}, $text{'edit_mkfsmsg2'},
&ui_hidden("dev", $dev),
&ui_select("type", $rt,
@@ -241,7 +245,7 @@ if (!$in{'new'} && !$pinfo->{'extended'}) {
if (!$in{'new'} && @stat && $stat[2] == 0 && &can_fsck($stat[1])) {
# Show form to fsck filesystem
print &ui_buttons_row("fsck_form.cgi",
$ui_buttons_content = &ui_buttons_row("fsck_form.cgi",
$text{'edit_fsck'},&text('edit_fsckmsg', "<tt>fsck</tt>"),
&ui_hidden("dev", $dev)." ".
&ui_hidden("type", $stat[1]));
@@ -249,7 +253,7 @@ if (!$in{'new'} && !$pinfo->{'extended'}) {
if (!$in{'new'} && @stat && $stat[2] == 0 && &can_tune($stat[1])) {
# Show form to tune filesystem
print &ui_buttons_row("tunefs_form.cgi",
$ui_buttons_content = &ui_buttons_row("tunefs_form.cgi",
$text{'edit_tune'}, $text{'edit_tunemsg'},
&ui_hidden("dev", $dev)." ".
&ui_hidden("type", $stat[1]));
@@ -260,7 +264,7 @@ if (!$in{'new'} && !$pinfo->{'extended'}) {
# Show form to mount filesystem
if ($types[0] eq "swap") {
# Swap partition
print &ui_buttons_row("../mount/edit_mount.cgi",
$ui_buttons_content = &ui_buttons_row("../mount/edit_mount.cgi",
$text{'edit_newmount2'},$text{'edit_mountmsg2'},
&ui_hidden("type", $types[0]).
&ui_hidden("newdev", $dev));
@@ -275,14 +279,24 @@ if (!$in{'new'} && !$pinfo->{'extended'}) {
else {
$dirsel .= &ui_hidden("type", $types[0]);
}
print &ui_buttons_row("../mount/edit_mount.cgi",
$ui_buttons_content = &ui_buttons_row("../mount/edit_mount.cgi",
$text{'edit_newmount'}, $text{'edit_mountmsg'},
&ui_hidden("newdev", $dev),
$dirsel);
}
}
print &ui_buttons_end();
if ($ui_buttons_content) {
print &ui_hr();
print &ui_buttons_start();
print $ui_buttons_content;
print &ui_buttons_end();
}
} elsif (!$mounted &&
$pinfo->{'edittype'} == 2) {
my $label = $config{'mode'} eq 'fdisk' ?
'edit_eparted2' : 'edit_eparted';
print "$text{$label}\n";
}
&ui_print_footer("edit_disk.cgi?device=$dinfo->{'device'}",

View File

@@ -245,8 +245,7 @@ local $devs = join(" ", @devs);
local ($disk, $m2);
if ($has_parted) {
open(FDISK, join(" ; ",
map { "parted $_ unit cyl print 2>/dev/null || ".
"fdisk -l $_ 2>/dev/null" } @devs)." |");
map { "parted $_ unit cyl print 2>/dev/null" } @devs)." |");
}
else {
open(FDISK, "fdisk -l -u=cylinders $devs 2>/dev/null || fdisk -l $devs 2>/dev/null |");
@@ -506,16 +505,19 @@ while(<FDISK>) {
$disk->{'cylsize'};
push(@{$disk->{'parts'}}, $part);
}
elsif (/(\/dev\/\S+?(\d+))\s+(\d+)\s+(\d+)\s+(\d+)\s+([0-9\.]+[kMGTP])\s+(\S.*)/) {
elsif (/(?<dev>\/dev\/\S+?(?<num>\d+))\s+(?<start>\d+)\s+(?<end>\d+)\s+(?<blocks>\d+)\s+(?<size>[0-9\.]+[kMGTP])\s+(?<type>\S.*)/ ||
/(?<dev>\/dev\/\S+?(?<num>\d+))\s+(?<start>\d+)\s+(?<end>\d+)\s+(?<size>[0-9\.]+[kMGTP])\s+(?<type>\S.*)/) {
# Partition within the current disk from fdisk (gpt format)
local $part = { 'number' => $2,
'device' => $1,
'type' => $7,
'start' => $3,
'end' => $4,
'blocks' => $5,
local $part = {
'number' => "$+{num}",
'device' => "$+{dev}",
'type' => "$+{type}",
'start' => "$+{start}",
'end' => "$+{end}",
'blocks' => "$+{blocks}",
'index' => scalar(@{$disk->{'parts'}}),
'edittype' => 1, };
'dtable' => $disk->{'table'},
'edittype' => 2, };
$part->{'desc'} = &partition_description($part->{'device'});
$part->{'size'} = ($part->{'end'} - $part->{'start'} + 1) *
$disk->{'cylsize'};
@@ -861,7 +863,12 @@ undef(@list_disks_partitions_cache);
# Returns a list of known partition tag numbers
sub list_tags
{
if ($has_parted) {
my ($fdisk_gpt) = @_;
if ($fdisk_gpt eq 'gpt') {
# fdisk gpt types
return sort { $a cmp $b } (keys %fdisk_gpt_tags);
}
elsif ($has_parted) {
# Parted types
return sort { $a cmp $b } (keys %parted_tags);
}
@@ -875,7 +882,7 @@ else {
# Returns a human-readable version of a tag
sub tag_name
{
return $tags{$_[0]} || $parted_tags{$_[0]} || $hidden_tags{$_[0]};
return $tags{$_[0]} || $parted_tags{$_[0]} || $fdisk_gpt_tags{$_[0]} || $hidden_tags{$_[0]};
}
sub default_tag
@@ -1563,6 +1570,14 @@ else { return " $_[2] $in{$_[0]}"; }
'f', 'Windows extended LBA',
);
%fdisk_gpt_tags = (
'', 'None',
'EFI System', 'EFI system partition',
'BIOS boot', 'BIOS boot partition',
'Linux filesystem', 'Linux filesystem',
'Linux LVM', 'Linux LVM',
);
%parted_tags = (
'', 'None',
'fat16', 'Windows FAT16',

View File

@@ -9,12 +9,6 @@ require './fdisk-lib.pl';
# Work out which disks are accessible
@disks = &list_disks_partitions();
@disks = grep { $access{'view'} || &can_edit_disk($_->{'device'}) } @disks;
if (@disks == 1 && &can_edit_disk($disks[0]->{'device'})) {
# Just one .. go direct to it's page
&redirect("edit_disk.cgi?device=$disks[0]->{'device'}");
edit;
}
$pdesc = $has_parted ? $text{'index_parted'} : $text{'index_fdisk'};
&ui_print_header($pdesc, $module_info{'desc'}, "", undef, 1, 1, 0,
&help_search_link("fdisk", "man", "doc", "howto"));

View File

@@ -98,6 +98,10 @@ edit_name=Partition name
edit_volid=Volume ID
edit_blocks=$1 blocks
edit_inuse=This partition cannot be changed as it is currently in use or configured for use.
edit_eparted=This partition cannot be changed unless <tt>parted</tt> command is installed.
edit_eparted2=This partition cannot be changed unless <tt>parted</tt> is set as management command in module config.
edit_edisk=This disk cannot be edited unless <tt>parted</tt> command is installed.
edit_edisk2=This disk cannot be edited unless <tt>parted</tt> is set as management command in module config.
edit_mkfs=Create New Filesystem
edit_mkfs2=Create Filesystem:
edit_mkfsmsg=Builds a new $1 filesystem on this partition, permanently erasing any existing files. You must do this after creating a new partition or changing an existing one.

View File

@@ -2,8 +2,6 @@
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();

View File

@@ -2,8 +2,6 @@
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
require 'gray-theme/gray-theme-lib.pl';
&ReadParse();
our ($current_theme, %in);

View File

@@ -3,8 +3,6 @@
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
require 'gray-theme/gray-theme-lib.pl';
&ReadParse();
our ($current_theme, $remote_user, %gconfig);
@@ -232,4 +230,3 @@ sub add_webprefix
my ($link) = @_;
return $link =~ /^\// ? &get_webprefix().$link : $link;
}

View File

@@ -3,8 +3,6 @@
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
require 'gray-theme/gray-theme-lib.pl';
&ReadParse();
&load_theme_library();

View File

@@ -2333,7 +2333,7 @@ my $cfile = &get_systemd_root($name)."/".$name;
# Opts
if (ref($opts)) {
&print_tempfile(CFILE, "ExecStop=$kill -HUP \$MAINPID\n") if ($opts->{'stop'} eq '0');
&print_tempfile(CFILE, "ExecStop=$kill \$MAINPID\n") if ($opts->{'stop'} eq '0');
&print_tempfile(CFILE, "ExecReload=$kill -HUP \$MAINPID\n") if ($opts->{'reload'} eq '0');
&print_tempfile(CFILE, "ExecStop=$opts->{'stop'}\n") if ($opts->{'stop'});
&print_tempfile(CFILE, "ExecReload=$opts->{'reload'}\n") if ($opts->{'reload'});

View File

@@ -0,0 +1,8 @@
file=/etc/ipsec.conf
secrets=/etc/ipsec.secrets
ipsec=/usr/local/sbin/ipsec
policies_dir=/etc/ipsec.d/policies
start_cmd=systemctl start ipsec
stop_cmd=systemctl stop ipsec
restart_cmd=systemctl restart ipsec
logfile=/var/log/messages

View File

@@ -0,0 +1,8 @@
file=/etc/ipsec.conf
secrets=/etc/ipsec.secrets
ipsec=/usr/local/sbin/ipsec
policies_dir=/etc/ipsec.d/policies
start_cmd=systemctl start ipsec
stop_cmd=systemctl stop ipsec
restart_cmd=systemctl restart ipsec
logfile=/var/log/messages

View File

@@ -0,0 +1,8 @@
config_file=/etc/tgt/tgtd.conf
tgtd=tgtd
tgtadm=tgtadm
init_name=tgtd
tgtadmin=tgt-admin
start_cmd=systemctl start tgtd
stop_cmd=systemctl stop tgtd
restart_cmd=systemctl restart tgtd

View File

@@ -0,0 +1,8 @@
config_file=/etc/tgt/tgtd.conf
tgtd=tgtd
tgtadm=tgtadm
init_name=tgtd
tgtadmin=tgt-admin
start_cmd=systemctl start tgtd
stop_cmd=systemctl stop tgtd
restart_cmd=systemctl restart tgtd

View File

@@ -0,0 +1,3 @@
auth_ldap=/etc/nslcd.conf
secret=/etc/ldap.secret
init_name=nslcd

View File

@@ -0,0 +1,3 @@
auth_ldap=/etc/nslcd.conf
secret=/etc/ldap.secret
init_name=nslcd

View File

@@ -0,0 +1,11 @@
config_file=/etc/openldap/slapd.d
schema_dir=/etc/openldap/schema
slapd=slapd
ldap_user=ldap
browse_max=100
start_cmd=systemctl start slapd
stop_cmd=systemctl stop slapd
apply_cmd=systemctl restart slapd
init_name=ldap
data_dir=/var/lib/ldap
attr_count=6

View File

@@ -0,0 +1,11 @@
config_file=/etc/openldap/slapd.d
schema_dir=/etc/openldap/schema
slapd=slapd
ldap_user=ldap
browse_max=100
start_cmd=systemctl start slapd
stop_cmd=systemctl stop slapd
apply_cmd=systemctl restart slapd
init_name=ldap
data_dir=/var/lib/ldap
attr_count=6

View File

@@ -143,7 +143,7 @@ print &ui_table_row($text{'edit_mailfl'},
$text{'edit_mailfirst'} :
$text{'edit_maillast'}) ] ]));
if (&get_logrotate_version() < 3.6) {
if (&compare_version_numbers(&get_logrotate_version(), 3.6) < 0) {
$errors = &find_value("errors", $lconf);
print &ui_table_row($text{'edit_errors'},
&ui_opt_textbox("errors", $errors, 30,
@@ -162,7 +162,7 @@ $post = &find_value("postrotate", $lconf);
print &ui_table_row($text{'edit_post'},
&ui_textarea("post", $post, 3, 60));
if (&get_logrotate_version() >= 3.4) {
if (&compare_version_numbers(&get_logrotate_version(), 3.4) >= 0) {
&yesno_option("sharedscripts", "nosharedscripts", $lconf);
}

View File

@@ -178,7 +178,7 @@ else {
&save_directive($log, "postrotate");
}
if (&get_logrotate_version() >= 3.4) {
if (defined($in{'sharedscripts'})) {
&parse_yesno("sharedscripts", "nosharedscripts", $log);
}

View File

@@ -0,0 +1,17 @@
iface_perms=755
gs_lib=
iface_arg=
gs_path=gs
spool_dir=/var/spool/cups
model_path=/usr/share/cups/model /etc/cups/ppd
gs_fontpath=
smbclient_path=smbclient
print_style=cups
show_status=0
iface_owner=lp:lp
sort_mode=0
driver_style=cups
stop_cmd=systemctl stop cups
start_cmd=systemctl start cups
display_mode=0
show_jobs=0

View File

@@ -0,0 +1,17 @@
iface_perms=755
gs_lib=
iface_arg=
gs_path=gs
spool_dir=/var/spool/cups
model_path=/usr/share/cups/model /etc/cups/ppd
gs_fontpath=
smbclient_path=smbclient
print_style=cups
show_status=0
iface_owner=lp:lp
sort_mode=0
driver_style=cups
stop_cmd=systemctl stop cups
start_cmd=systemctl start cups
display_mode=0
show_jobs=0

View File

@@ -405,7 +405,7 @@ if (&get_lvm_version() >= 2) {
elsif (/\s+Logical\s+volume\s+([a-z0-9\_]+)/i) {
push(@raids, [ $1, undef ]);
}
elsif (/\s+Logical\s+extents\s+(\d+)\s+to\s+(\d+)/ && @rv) {
elsif (/\s+Logical\s+extents\s+(\d+)\s+to\s+(\d+)/ && @raids) {
$raids[$#raid]->[1] = $2-$1+1;
}
}

View File

@@ -319,15 +319,13 @@ rm -f /var/lock/subsys/$baseproduct
if [ "\$inetd" != "1" ]; then
productucf=Webmin
productspace=""
if [ "$product" = "usermin" ]; then
productucf=Usermin
productspace=" "
fi
if [ "\$justinstalled" = "1" ]; then
/etc/$baseproduct/start >/dev/null 2>&1 </dev/null
if [ "\$?" != "0" ]; then
echo "E: \${productucf} server cannot be started. It is advised to start it manually\n \${productspace} by running \\"/etc/$baseproduct/restart-by-force-kill\\" command"
echo "E: \${productucf} server cannot be started. It is advised to start it manually\n by running \\"/etc/$baseproduct/restart-by-force-kill\\" command"
fi
else
if [ "$product" = "webmin" ]; then
@@ -340,7 +338,7 @@ if [ "\$inetd" != "1" ]; then
/etc/$baseproduct/restart >/dev/null 2>&1 </dev/null
fi
if [ "\$?" != "0" ]; then
echo "W: \${productucf} server cannot be restarted. It is advised to restart it manually\n \${productspace} by running \\"/etc/$baseproduct/restart-by-force-kill\\" command when upgrade process is finished"
echo "W: \${productucf} server cannot be restarted. It is advised to restart it manually\n by running \\"/etc/$baseproduct/restart-by-force-kill\\" command when upgrade process is finished"
fi
fi
fi
@@ -352,6 +350,7 @@ read answer
printf "\\n"
if [ "\\\$answer" = "y" ]; then
echo "Removing $ucproduct package .."
rm -f /usr/share/$baseproduct/authentic-theme/manifest-*
dpkg --remove --force-depends $product
systemctlcmd=\\\`which systemctl 2>/dev/null\\\`
if [ -x "\\\$systemctlcmd" ]; then
@@ -400,6 +399,7 @@ if [ "\$1" != "upgrade" -a "\$1" != "abort-upgrade" ]; then
if [ "$product" = "webmin" ]; then
(cd /usr/share/$baseproduct ; WEBMIN_CONFIG=/etc/$baseproduct WEBMIN_VAR=/var/$baseproduct LANG= /usr/share/$baseproduct/run-uninstalls.pl) >/dev/null 2>&1 </dev/null
else
rm -f /usr/share/$baseproduct/authentic-theme/manifest-*
systemctlcmd=\`which systemctl 2>/dev/null\`
if [ -x "\$systemctlcmd" ]; then
\$systemctlcmd stop $product >/dev/null 2>&1 </dev/null

View File

@@ -74,7 +74,7 @@ Version: $ver
Release: $rel
Provides: %{name}-%{version} perl(WebminCore)
Requires(pre): /usr/bin/perl
Requires: /bin/sh /usr/bin/perl /bin/rm perl(Net::SSLeay) perl(Time::Local) perl(Encode::Detect) perl(Data::Dumper) openssl unzip tar
Requires: /bin/sh /usr/bin/perl /bin/rm perl(lib) perl(open) perl(Net::SSLeay) perl(Time::Local) perl(Encode::Detect) perl(Data::Dumper) perl(File::Path) perl(File::Basename) openssl unzip tar
AutoReq: 0
License: BSD-3-clause
Group: System/Tools

View File

@@ -327,7 +327,9 @@ if ($use_syslog) {
$use_syslog = 0;
}
else {
local $msg = ucfirst($config{'pam'})." starting";
local $msg = ucfirst($config{'pam'});
$msg .= $ENV{'STARTED'}++ ?
" reloaded configuration" : " starting";
eval { syslog("info", "%s", $msg); };
if ($@) {
eval {

View File

@@ -1689,31 +1689,6 @@ if (($_[0] eq "nfs") || ($_[0] eq "nfs4")) {
$in{'nfs_host'}, "<pre>$dirlist</pre>"));
}
# Try a test mount to see if filesystem is available
$temp = &tempname();
&make_dir($temp, 0755);
&execute_command("mount -t $_[0] ".
quotemeta("$in{nfs_host}:$in{nfs_dir}")." ".
quotemeta($temp),
undef, \$mout, \$mout);
if ($mout =~ /No such file or directory/i) {
&error(&text('linux_enfsdir', $in{'nfs_dir'},
$in{'nfs_host'}, "<pre>$dirlist</pre>"));
}
elsif ($mout =~ /Permission denied/i) {
&error(&text('linux_enfsperm', $in{'nfs_dir'}, $in{'nfs_host'}));
}
elsif ($?) {
&error(&text('linux_enfsmount', "<tt>$mout</tt>"));
}
# It worked! unmount
local $umout;
&execute_command("umount ".quotemeta($temp), undef, \$umout, \$umout);
if ($?) {
&error(&text('linux_enfsmount', "<tt>$umout</tt>"));
}
rmdir(&translate_filename($temp)); # Don't delete mounted files!
return "$in{nfs_host}:$in{nfs_dir}";
}
elsif ($_[0] eq "auto") {

View File

@@ -1,5 +1,5 @@
start_cmd=service mariadb start
stop_cmd=service mariadb stop
start_cmd=systemctl start mariadb
stop_cmd=systemctl stop mariadb
mysql=/usr/bin/mysql
mysqldump=/usr/bin/mysqldump
mysqlimport=/usr/bin/mysqlimport
@@ -20,3 +20,4 @@ my_cnf=/etc/my.cnf
max_text=1000
nopwd=0
webmin_subs=0
login=root

View File

@@ -1,5 +1,5 @@
start_cmd=service mariadb start
stop_cmd=service mariadb stop
start_cmd=systemctl start mariadb
stop_cmd=systemctl stop mariadb
mysql=/usr/bin/mysql
mysqldump=/usr/bin/mysqldump
mysqlimport=/usr/bin/mysqlimport
@@ -20,3 +20,4 @@ my_cnf=/etc/my.cnf
max_text=1000
nopwd=0
webmin_subs=0
login=root

View File

@@ -0,0 +1,23 @@
start_cmd=systemctl start mariadb
stop_cmd=systemctl stop mariadb
mysql=/usr/bin/mysql
mysqldump=/usr/bin/mysqldump
mysqlimport=/usr/bin/mysqlimport
mysql_libs=
mysqladmin=/usr/bin/mysqladmin
mysqlshow=/usr/bin/mysqlshow
perpage=25
style=1
add_mode=1
nodbi=0
access=*: *
blob_mode=0
date_subs=0
passwd_mode=0
mysql_data=/var/lib/mysql
max_dbs=50
my_cnf=/etc/my.cnf
max_text=1000
nopwd=0
webmin_subs=0
login=root

View File

@@ -0,0 +1,23 @@
start_cmd=systemctl start mariadb
stop_cmd=systemctl stop mariadb
mysql=/usr/bin/mysql
mysqldump=/usr/bin/mysqldump
mysqlimport=/usr/bin/mysqlimport
mysql_libs=
mysqladmin=/usr/bin/mysqladmin
mysqlshow=/usr/bin/mysqlshow
perpage=25
style=1
add_mode=1
nodbi=0
access=*: *
blob_mode=0
date_subs=0
passwd_mode=0
mysql_data=/var/lib/mysql
max_dbs=50
my_cnf=/etc/my.cnf
max_text=1000
nopwd=0
webmin_subs=0
login=root

View File

@@ -1,5 +1,5 @@
start_cmd=service mariadb start
stop_cmd=service mariadb stop
start_cmd=systemctl start mariadb
stop_cmd=systemctl stop mariadb
mysql=/usr/bin/mysql
mysqldump=/usr/bin/mysqldump
mysqlimport=/usr/bin/mysqlimport
@@ -20,3 +20,4 @@ my_cnf=/etc/my.cnf
max_text=1000
nopwd=0
webmin_subs=0
login=root

View File

@@ -1,5 +1,5 @@
start_cmd=service mariadb start
stop_cmd=service mariadb stop
start_cmd=systemctl start mariadb
stop_cmd=systemctl stop mariadb
mysql=/usr/bin/mysql
mysqldump=/usr/bin/mysqldump
mysqlimport=/usr/bin/mysqlimport
@@ -20,3 +20,4 @@ my_cnf=/etc/my.cnf
max_text=1000
nopwd=0
webmin_subs=0
login=root

View File

@@ -1,9 +1,9 @@
start_cmd=service mysql start
stop_cmd=service mysql stop
start_cmd=systemctl start mysql
stop_cmd=systemctl stop mysql
mysql=/usr/bin/mysql
mysqldump=/usr/bin/mysqldump
mysqlimport=/usr/bin/mysqlimport
mysql_libs=/usr/local/mysql/lib
mysql_libs=
mysqladmin=/usr/bin/mysqladmin
mysqlshow=/usr/bin/mysqlshow
perpage=25

View File

@@ -0,0 +1,23 @@
start_cmd=systemctl start mysql
stop_cmd=systemctl stop mysql
mysql=/usr/bin/mysql
mysqldump=/usr/bin/mysqldump
mysqlimport=/usr/bin/mysqlimport
mysql_libs=
mysqladmin=/usr/bin/mysqladmin
mysqlshow=/usr/bin/mysqlshow
perpage=25
style=1
add_mode=1
nodbi=0
access=*: *
blob_mode=0
date_subs=0
passwd_mode=0
mysql_data=/var/lib/mysql
max_dbs=50
my_cnf=/etc/mysql/my.cnf
max_text=1000
nopwd=0
webmin_subs=0
login=root

View File

@@ -1,5 +1,5 @@
start_cmd=systemctl start mariadb.service
stop_cmd=systemctl stop mariadb.service
start_cmd=systemctl start mariadb
stop_cmd=systemctl stop mariadb
mysql=/usr/bin/mysql
mysqldump=/usr/bin/mysqldump
mysqlimport=/usr/bin/mysqlimport
@@ -20,3 +20,4 @@ my_cnf=/etc/my.cnf
max_text=1000
nopwd=0
webmin_subs=0
login=root

View File

@@ -83,7 +83,7 @@ while($f = readdir(CONF)) {
$b->{'file'} = "$net_scripts_dir/$f";
push(@rv, $b);
}
elsif ($f !~ /\.(bak|old)$/i && $f =~ /^ifcfg-([a-zA-Z_0-9:\.]+)$/) {
elsif ($f !~ /\.(bak|old)$/i && $f =~ /^ifcfg-([a-zA-Z_0-9:\.\-]+)$/) {
# Normal interface
my $fname = $1;
&read_env_file("$net_scripts_dir/$f", \%conf);

View File

@@ -1 +1 @@
php_ini=/etc/php.ini
php_ini=/etc/php.ini,/etc/*/*/php*/php.ini,/etc/*/*/*php*/php.ini=Configuration for CLI and CGI /etc/php-fpm.conf,/etc/*/php*/php-fpm.conf,/etc/*/*/php*/php-fpm.conf=Configuration for FPM

View File

@@ -0,0 +1 @@
php_ini=/etc/php*/cli/php.ini,/etc/php/*/cli/php.ini=Configuration for CLI /etc/php*/fpm/php.ini,/etc/php/*/fpm/php.ini=Configuration for FPM /etc/php*/cgi/php.ini,/etc/php/*/cgi/php.ini=Configuration for CGI /etc/php*/apache2/php.ini,/etc/php/*/apache2/php.ini=Configuration for <tt>mod_php</tt>

View File

@@ -0,0 +1 @@
php_ini=/etc/php*/cli/php.ini,/etc/php/*/cli/php.ini=Configuration for CLI /etc/php*/fpm/php.ini,/etc/php/*/fpm/php.ini=Configuration for FPM /etc/php*/cgi/php.ini,/etc/php/*/cgi/php.ini=Configuration for CGI /etc/php*/apache2/php.ini,/etc/php/*/apache2/php.ini=Configuration for <tt>mod_php</tt>

View File

@@ -16,7 +16,8 @@ if (@files == 1 && !$access{'anyfile'} && $access{'noconfig'}) {
$text{'list_title'}, "", undef, 0, $onefile);
@pages = ( "vars", "dirs", "db", "session", "safe", "limits",
"errors", "misc", "manual" );
"errors", "misc" );
push(@pages, 'manual') if ($access{'manual'} ne '0');
@links = map { "edit_${_}.cgi?file=".&urlize($in{'file'})."&oneini=1" } @pages;
@titles = map { $text{$_."_title"} } @pages;
@icons = map { "images/$_.gif" } @pages;

View File

@@ -0,0 +1,33 @@
postfix_control_command=/usr/sbin/postfix
postfix_config_command=/usr/sbin/postconf
postfix_config_file=/etc/postfix/main.cf
postfix_aliases_table_command=/usr/sbin/postalias
postfix_newaliases_command=/usr/bin/newaliases
postfix_lookup_table_command=/usr/sbin/postmap
postfix_queue_command=postqueue
postfix_super_command=/usr/sbin/postsuper
max_records=200
perpage=20
mailq_dir=/var/spool/postfix
mailq_cmd=postqueue -p
postcat_cmd=/usr/sbin/postcat
sort_mode=0
fwd_mode=0
mailq_sort=0
mailq_count=0
delete_warn=1
mailq_sort=0
check_config=1
top_buttons=1
wrap_width=80
index_check=1
postfix_master=/etc/postfix/master.cf
columns=2
show_cmts=0
prefix_cmts=0
ldap_doms=0
delete_confirm=1
max_maps=400
reload_cmd=systemctl reload postfix
stop_cmd=systemctl stop postfix
start_cmd=systemctl start postfix

View File

@@ -0,0 +1,33 @@
postfix_control_command=/usr/sbin/postfix
postfix_config_command=/usr/sbin/postconf
postfix_config_file=/etc/postfix/main.cf
postfix_aliases_table_command=/usr/sbin/postalias
postfix_newaliases_command=/usr/bin/newaliases
postfix_lookup_table_command=/usr/sbin/postmap
postfix_queue_command=postqueue
postfix_super_command=/usr/sbin/postsuper
max_records=200
perpage=20
mailq_dir=/var/spool/postfix
mailq_cmd=postqueue -p
postcat_cmd=/usr/sbin/postcat
sort_mode=0
fwd_mode=0
mailq_sort=0
mailq_count=0
delete_warn=1
mailq_sort=0
check_config=1
top_buttons=1
wrap_width=80
index_check=1
postfix_master=/etc/postfix/master.cf
columns=2
show_cmts=0
prefix_cmts=0
ldap_doms=0
delete_confirm=1
max_maps=400
reload_cmd=systemctl reload postfix
stop_cmd=systemctl stop postfix
start_cmd=systemctl start postfix

View File

@@ -0,0 +1,33 @@
postfix_control_command=/usr/sbin/postfix
postfix_config_command=/usr/sbin/postconf
postfix_config_file=/etc/postfix/main.cf
postfix_aliases_table_command=/usr/sbin/postalias
postfix_newaliases_command=/usr/bin/newaliases
postfix_lookup_table_command=/usr/sbin/postmap
postfix_queue_command=postqueue
postfix_super_command=/usr/sbin/postsuper
max_records=200
perpage=20
mailq_dir=/var/spool/postfix
mailq_cmd=postqueue -p
postcat_cmd=/usr/sbin/postcat
sort_mode=0
fwd_mode=0
mailq_sort=0
mailq_count=0
delete_warn=1
mailq_sort=0
check_config=1
top_buttons=1
wrap_width=80
index_check=1
postfix_master=/etc/postfix/master.cf
columns=2
show_cmts=0
prefix_cmts=0
ldap_doms=0
delete_confirm=1
max_maps=400
reload_cmd=systemctl reload postfix
stop_cmd=systemctl stop postfix
start_cmd=systemctl start postfix

View File

@@ -0,0 +1,33 @@
postfix_control_command=/usr/sbin/postfix
postfix_config_command=/usr/sbin/postconf
postfix_config_file=/etc/postfix/main.cf
postfix_aliases_table_command=/usr/sbin/postalias
postfix_newaliases_command=/usr/bin/newaliases
postfix_lookup_table_command=/usr/sbin/postmap
postfix_queue_command=postqueue
postfix_super_command=/usr/sbin/postsuper
max_records=200
perpage=20
mailq_dir=/var/spool/postfix
mailq_cmd=postqueue -p
postcat_cmd=/usr/sbin/postcat
sort_mode=0
fwd_mode=0
mailq_sort=0
mailq_count=0
delete_warn=1
mailq_sort=0
check_config=1
top_buttons=1
wrap_width=80
index_check=1
postfix_master=/etc/postfix/master.cf
columns=2
show_cmts=0
prefix_cmts=0
ldap_doms=0
delete_confirm=1
max_maps=400
reload_cmd=systemctl reload postfix
stop_cmd=systemctl stop postfix
start_cmd=systemctl start postfix

View File

@@ -0,0 +1,33 @@
postfix_control_command=/usr/sbin/postfix
postfix_config_command=/usr/sbin/postconf
postfix_config_file=/etc/postfix/main.cf
postfix_aliases_table_command=/usr/sbin/postalias
postfix_newaliases_command=/usr/bin/newaliases
postfix_lookup_table_command=/usr/sbin/postmap
postfix_queue_command=postqueue
postfix_super_command=/usr/sbin/postsuper
max_records=200
perpage=20
mailq_dir=/var/spool/postfix
mailq_cmd=postqueue -p
postcat_cmd=/usr/sbin/postcat
sort_mode=0
fwd_mode=0
mailq_sort=0
mailq_count=0
delete_warn=1
mailq_sort=0
check_config=1
top_buttons=1
wrap_width=80
index_check=1
postfix_master=/etc/postfix/master.cf
columns=2
show_cmts=0
prefix_cmts=0
ldap_doms=0
delete_confirm=1
max_maps=400
reload_cmd=systemctl reload postfix
stop_cmd=systemctl stop postfix
start_cmd=systemctl start postfix

View File

@@ -0,0 +1,33 @@
postfix_control_command=/usr/sbin/postfix
postfix_config_command=/usr/sbin/postconf
postfix_config_file=/etc/postfix/main.cf
postfix_aliases_table_command=/usr/sbin/postalias
postfix_newaliases_command=/usr/bin/newaliases
postfix_lookup_table_command=/usr/sbin/postmap
postfix_queue_command=postqueue
postfix_super_command=/usr/sbin/postsuper
max_records=200
perpage=20
mailq_dir=/var/spool/postfix
mailq_cmd=postqueue -p
postcat_cmd=/usr/sbin/postcat
sort_mode=0
fwd_mode=0
mailq_sort=0
mailq_count=0
delete_warn=1
mailq_sort=0
check_config=1
top_buttons=1
wrap_width=80
index_check=1
postfix_master=/etc/postfix/master.cf
columns=2
show_cmts=0
prefix_cmts=0
ldap_doms=0
delete_confirm=1
max_maps=400
reload_cmd=systemctl reload postfix
stop_cmd=systemctl stop postfix
start_cmd=systemctl start postfix

View File

@@ -0,0 +1,33 @@
postfix_control_command=/usr/sbin/postfix
postfix_config_command=/usr/sbin/postconf
postfix_config_file=/etc/postfix/main.cf
postfix_aliases_table_command=/usr/sbin/postalias
postfix_newaliases_command=/usr/bin/newaliases
postfix_lookup_table_command=/usr/sbin/postmap
postfix_queue_command=postqueue
postfix_super_command=/usr/sbin/postsuper
max_records=200
perpage=20
mailq_dir=/var/spool/postfix
mailq_cmd=postqueue -p
postcat_cmd=/usr/sbin/postcat
sort_mode=0
fwd_mode=0
mailq_sort=0
mailq_count=0
delete_warn=1
mailq_sort=0
check_config=1
top_buttons=1
wrap_width=80
index_check=1
postfix_master=/etc/postfix/master.cf
columns=2
show_cmts=0
prefix_cmts=0
ldap_doms=0
delete_confirm=1
max_maps=400
reload_cmd=systemctl reload postfix
stop_cmd=systemctl stop postfix
start_cmd=systemctl start postfix

View File

@@ -3,12 +3,12 @@ psql=/usr/bin/psql
basedb=template1
start_cmd=systemctl start postgresql
stop_cmd=systemctl stop postgresql
pid_file=/var/run/postmaster*.pid
pid_file=/var/lib/pgsql/data/postmaster.pid
perpage=25
hba_conf=/var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/*/data/pg_hba.conf
nodbi=0
user=postgres
setup_cmd=postgresql-setup initdb
setup_cmd=postgresql-setup --initdb
dump_cmd=/usr/bin/pg_dump
rstr_cmd=/usr/bin/pg_restore
repository=/home/db_repository

View File

@@ -3,12 +3,12 @@ psql=/usr/bin/psql
basedb=template1
start_cmd=systemctl start postgresql
stop_cmd=systemctl stop postgresql
pid_file=/var/run/postmaster*.pid
pid_file=/var/lib/pgsql/data/postmaster.pid
perpage=25
hba_conf=/var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/*/data/pg_hba.conf
nodbi=0
user=postgres
setup_cmd=postgresql-setup initdb
setup_cmd=postgresql-setup --initdb
dump_cmd=/usr/bin/pg_dump
rstr_cmd=/usr/bin/pg_restore
repository=/home/db_repository

View File

@@ -0,0 +1,25 @@
login=postgres
psql=/usr/bin/psql
basedb=template1
start_cmd=systemctl start postgresql
stop_cmd=systemctl stop postgresql
pid_file=/var/lib/pgsql/data/postmaster.pid
perpage=25
hba_conf=/var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/*/data/pg_hba.conf
nodbi=0
user=postgres
setup_cmd=postgresql-setup --initdb
dump_cmd=/usr/bin/pg_dump
rstr_cmd=/usr/bin/pg_restore
repository=/home/db_repository
sameunix=1
access=*: *
blob_mode=0
add_mode=1
date_subs=0
style=0
max_dbs=50
simple_sched=0
access_own=0
max_text=1000
webmin_subs=0

View File

@@ -0,0 +1,25 @@
login=postgres
psql=/usr/bin/psql
basedb=template1
start_cmd=systemctl start postgresql
stop_cmd=systemctl stop postgresql
pid_file=/var/lib/pgsql/data/postmaster.pid
perpage=25
hba_conf=/var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/*/data/pg_hba.conf
nodbi=0
user=postgres
setup_cmd=postgresql-setup --initdb
dump_cmd=/usr/bin/pg_dump
rstr_cmd=/usr/bin/pg_restore
repository=/home/db_repository
sameunix=1
access=*: *
blob_mode=0
add_mode=1
date_subs=0
style=0
max_dbs=50
simple_sched=0
access_own=0
max_text=1000
webmin_subs=0

View File

@@ -3,12 +3,12 @@ psql=/usr/bin/psql
basedb=template1
start_cmd=systemctl start postgresql
stop_cmd=systemctl stop postgresql
pid_file=/var/run/postmaster*.pid
pid_file=/var/lib/pgsql/data/postmaster.pid
perpage=25
hba_conf=/var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/*/data/pg_hba.conf
nodbi=0
user=postgres
setup_cmd=postgresql-setup initdb
setup_cmd=postgresql-setup --initdb
dump_cmd=/usr/bin/pg_dump
rstr_cmd=/usr/bin/pg_restore
repository=/home/db_repository

View File

@@ -0,0 +1,24 @@
hba_conf=/etc/postgresql/*/main/pg_hba.conf
psql=/usr/bin/psql
start_cmd=systemctl start postgresql
stop_cmd=systemctl stop postgresql
basedb=template1
perpage=25
plib=
pass=
login=postgres
pid_file=/run/postgresql/*.pid
nodbi=0
dump_cmd=/usr/bin/pg_dump
rstr_cmd=/usr/bin/pg_restore
sameunix=1
access=*: *
blob_mode=0
add_mode=1
date_subs=0
style=0
max_dbs=50
simple_sched=0
access_own=0
max_text=1000
webmin_subs=0

Some files were not shown because too many files have changed in this diff Show More