Skip to content
Snippets Groups Projects
Commit 5473938a authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add build post actions file

parent f9d6b39e
No related branches found
No related tags found
No related merge requests found
......@@ -117,5 +117,6 @@ echo "see $readme\n";
// ----------------------------------------------------------------------
_h1("Done: Build was successful.");
@include "build_postactions.php";
// ----------------------------------------------------------------------
#!/bin/env php
<?php
/**
* POST ACTIPONS after build
*/
$sshTarget="webmaster@downloads.example.com";
$webTargetdir="/var/www/downloads.example.com/public_html/downloads/appmonitor_client";
$sPublishFiles=basename($OUTFILE).'*';
_h1("POST ACTIONS :: PUBLISH");
_chdir("$selfdir/$dirPackages");
_exec("scp $sPublishFiles $sshTarget:/tmp");
_exec("ssh $sshTarget sudo mv /tmp/$sPublishFiles $webTargetdir");
_h1("Done.");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment