]> git.proxmox.com Git - pve-installer.git/commitdiff
pmg: write admin email to /etc/pmg/pmg.conf
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 21 Nov 2017 09:21:50 +0000 (10:21 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 21 Nov 2017 09:21:50 +0000 (10:21 +0100)
proxinstall

index 7603de891df9b2baa1f9cb114daa1327893bb3c0..f8f5de2295480fce86c544415b9545289b5b1447 100755 (executable)
@@ -1601,8 +1601,8 @@ _EOD
 
        if ($setup->{product} eq 'pmg') {
            # save admin email
-           write_config ("#Unix Superuser\nroot:1:0::root:${mailto}:::\n",
-                         "$targetdir/etc/pmg/user.conf");
+           write_config ("section: admin\n\temail ${mailto}\n",
+                         "$targetdir/etc/pmg/pmg.conf");
 
        } elsif ($setup->{product} eq 'pve') {