|
|
@@ -2994,11 +2994,11 @@ echo \''.$plist.'\' > /Library/LaunchDaemons/parallels.'.$h->SERVER_ADDRESS.'.pl
|
|
|
DEBUG_S(-3, $cmd, $result);
|
|
|
|
|
|
echo "<br/>Aktualizacja certyfikatu";
|
|
|
- $cmd = 'prlctl exec "'.$h->SERVER_ADDRESS.'" \'[ -n "`find /etc/certificates -name *'.$h->SERVER_ADDRESS.'*.cert.pem`" ] && /Applications/Server.app/Contents/ServerRoot/usr/sbin/certupdate replace -c "`find /etc/certificates -name *procesy5.local.*.cert.pem | tail -1`" -C "`find /etc/certificates -name *'.$h->SERVER_ADDRESS.'*.cert.pem | tail -1`" 2>&1\'';
|
|
|
+ $cmd = 'prlctl exec "'.$h->SERVER_ADDRESS.'" "[ -f /etc/certificates/'.$h->SERVER_ADDRESS.'*.cert.pem ] && /Applications/Server.app/Contents/ServerRoot/usr/sbin/certupdate replace -c /etc/certificates/procesy5.local.*.cert.pem -C /etc/certificates/'.$h->SERVER_ADDRESS.'*.cert.pem 2>&1 || echo \'Certificate for '.$h->SERVER_ADDRESS.' not found.\'"';
|
|
|
$result = execOnParallels($cmd);
|
|
|
DEBUG_S(-3, $cmd, $result);
|
|
|
if (!$result) throw new Exception("Wystąpił bląd instalacji certyfikatu, przerywam...");
|
|
|
- die("test koniec");
|
|
|
+
|
|
|
echo "<br/>Instalowanie Procesy5";
|
|
|
$cmd = 'prlctl exec "'.$h->SERVER_ADDRESS.'" \'mkdir /var/root/.procesy5_install; touch /var/root/.procesy5_install/started\'';
|
|
|
$result = execOnParallels($cmd);
|