Skip to content

Commit

Permalink
Display last commit hash from lychee-laravel. Update repo location.
Browse files Browse the repository at this point in the history
  • Loading branch information
roblandry committed Aug 17, 2019
1 parent cd85332 commit 2e05595
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#-------------------------------------------
# Docker Compose
# @RobLandry
# Original Repo : https://gitlab.landry.me/
# Repo : https://github.com/LycheeOrg/Lychee-Laravel-Docker
#-------------------------------------------

version: '3'
Expand Down
23 changes: 22 additions & 1 deletion entrypoint.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
#!/bin/sh

echo "**** Starting the Entrypoint Script ****"
set -e

# Read Last commit hash from .git
# This prevents installing git, and allows display of commit
read -r longhash < /var/www/html/Lychee-Laravel/.git/refs/heads/master
shorthash=$(echo $longhash |cut -c1-7)

echo '
-------------------------------------
_ _
| | _ _ ___| |__ ___ ___
| | | | | |/ __| _ \ / _ \/ _ \
| |__| |_| | (__| | | | __/ __/
|_____\__, |\___|_| |_|\___|\___|
| | |___/ _ __ __ ___ _____| |
| | / _'\'' | '\''__/ _'\'' \ \ / / _ \ |
| |__| (_| | | | (_| |\ V / __/ |
|_____\__,_|_| \__,_| \_/ \___|_|
-------------------------------------
Latest Commit: '$shorthash'
https://github.com/LycheeOrg/Lychee-Laravel/commit/'$longhash'
-------------------------------------'

echo "**** Make sure the /conf and /uploads folders exist ****"
[ ! -f /conf ] && \
mkdir -p /conf
Expand Down

0 comments on commit 2e05595

Please sign in to comment.