diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 4429c8a4..f67463df 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -49,6 +49,10 @@ else chmod -R 777 /var/www/html fi +if [[-f /var/www/html/settings_update.php ]]; then + sed -i "s/\$repo_branch.*';/\$repo_branch = '$ITFLOW_REPO_BRANCH';/g" /var/www/html/settings_update.php +fi + # Enable the apache2 sites-available service apache2 reload service apache2 stop diff --git a/settings_update.php b/settings_update.php index c9437636..1455a3f3 100644 --- a/settings_update.php +++ b/settings_update.php @@ -5,9 +5,10 @@ include("database_version.php"); %h%ar%s'"); +$git_log = shell_exec("git log $repo_branch..origin/$repo_branch --pretty=format:'%h%ar%s'"); ?>