]> git.proxmox.com Git - pve-installer.git/commitdiff
pmg: write user.conf to correct location
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 21 Nov 2017 08:55:46 +0000 (09:55 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 21 Nov 2017 08:55:46 +0000 (09:55 +0100)
proxinstall

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