Fix not to print newly created module config dirs to stdout

This commit is contained in:
Ilia Ross
2026-05-10 19:36:28 +02:00
parent f78413549b
commit 2ec6cadbbd
2 changed files with 2 additions and 2 deletions

View File

@@ -528,7 +528,7 @@ if [ "$post_config" = "1" ]; then
# Copy config file to /etc/webmin or /etc/usermin
os_type=`grep "^os_type=" /etc/$product/config | sed -e 's/os_type=//g'`
os_version=`grep "^os_version=" /etc/$product/config | sed -e 's/os_version=//g'`
/usr/bin/perl /usr/share/$product/copyconfig.pl \$os_type \$os_version /usr/share/$product /etc/$product $mod
/usr/bin/perl /usr/share/$product/copyconfig.pl \$os_type \$os_version /usr/share/$product /etc/$product $mod >/dev/null
# Update the ACL for the root user, or the first user in the ACL
grep "^root:" /etc/$product/webmin.acl >/dev/null

View File

@@ -492,7 +492,7 @@ if [ "$post_config" = "1" ]; then
os_version=`grep "^os_version=" /etc/$prog/config | sed -e 's/os_version=//g'`
real_os_type=`grep "^real_os_type=" /etc/$prog/config | sed -e 's/real_os_type=//g'`
real_os_version=`grep "^real_os_version=" /etc/$prog/config | sed -e 's/real_os_version=//g'`
/usr/bin/perl /usr/libexec/$prog/copyconfig.pl "\$os_type/\$real_os_type" "\$os_version/\$real_os_version" /usr/libexec/$prog /etc/$prog $mod
/usr/bin/perl /usr/libexec/$prog/copyconfig.pl "\$os_type/\$real_os_type" "\$os_version/\$real_os_version" /usr/libexec/$prog /etc/$prog $mod >/dev/null
# Update the ACL for the root user, or the first user in the ACL
grep "^root:" /etc/$prog/webmin.acl >/dev/null