[Scummvm-git-logs] scummvm-web master -> 034e08d32599da006ca6c6bc18cb1193a28d4e27

Mataniko mataniko at gmail.com
Sun Jul 15 15:30:41 CEST 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
034e08d325 WEB: Extract site-update to it's own shell script


Commit: 034e08d32599da006ca6c6bc18cb1193a28d4e27
    https://github.com/scummvm/scummvm-web/commit/034e08d32599da006ca6c6bc18cb1193a28d4e27
Author: Matan Bareket (mataniko at gmail.com)
Date: 2018-07-15T09:30:21-04:00

Commit Message:
WEB: Extract site-update to it's own shell script

Changed paths:
  A site-update/install.sh
    site-update/index.php


diff --git a/site-update/index.php b/site-update/index.php
index d2374b6..28e31e5 100644
--- a/site-update/index.php
+++ b/site-update/index.php
@@ -2,7 +2,10 @@
 <body>
 <pre>
 <?php
+  // Leaving this in initially in case the new script doesn't run...
   echo shell_exec("cd ..;echo '$ git pull --rebase';git pull --rebase;echo '$ git status';git status;echo '$ composer install';composer install 2>&1");
+
+  echo shell_exec('sh install.sh');
 ?>
 </pre>
 </body>
diff --git a/site-update/install.sh b/site-update/install.sh
new file mode 100644
index 0000000..141cc20
--- /dev/null
+++ b/site-update/install.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# Go to the root folder
+cd ..
+
+# Pull the updated website from github
+echo '$ git pull --rebase'
+git pull --rebase
+echo '$ git status'
+git status
+
+# Run composer install
+echo "$ Composer home:" $COMPOSER_HOME
+export COMPOSER_HOME=/var/www
+echo '$ composer install'
+composer install 2>&1
+ 
\ No newline at end of file





More information about the Scummvm-git-logs mailing list