]> git.proxmox.com Git - pve-installer.git/blobdiff - proxinstall
try to use shorter title
[pve-installer.git] / proxinstall
index 4e21543486777af4a5a0aa654e8a6aff619e3111..b1f601bd20f66bc984a4665665d6422f77cd7aab 100755 (executable)
@@ -1019,10 +1019,10 @@ sub display_html {
        my $licensefn = -f "/EULA" ? "/EULA" : 
            $opt_testmode ? "./copyright" : 
            "/usr/share/doc/pve-installer/copyright";
-       my $eula = decode('utf8', file_get_contents($licensefn));
-       $eula =~ s/^(.*\n)//;
-       my $title = $1;
-       $data =~ s/__LICENSE__/$eula/;
+       my $license = decode('utf8', file_get_contents($licensefn));
+       $license =~ m/^\s+(.+\n)/;
+       my $title = $licensefn eq '/EULA' ? "END USER LICENSE AGREEMENT (EULA)": $1;
+       $data =~ s/__LICENSE__/$license/;
        $data =~ s/__LICENSE_TITLE__/$title/;
     }