Skip to content

Commit 2e05595

Browse files
committed
Display last commit hash from lychee-laravel. Update repo location.
1 parent cd85332 commit 2e05595

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#-------------------------------------------
22
# Docker Compose
33
# @RobLandry
4-
# Original Repo : https://gitlab.landry.me/
4+
# Repo : https://github.com/LycheeOrg/Lychee-Laravel-Docker
55
#-------------------------------------------
66

77
version: '3'

entrypoint.sh

100644100755
Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
11
#!/bin/sh
22

3-
echo "**** Starting the Entrypoint Script ****"
43
set -e
54

5+
# Read Last commit hash from .git
6+
# This prevents installing git, and allows display of commit
7+
read -r longhash < /var/www/html/Lychee-Laravel/.git/refs/heads/master
8+
shorthash=$(echo $longhash |cut -c1-7)
9+
10+
echo '
11+
-------------------------------------
12+
_ _
13+
| | _ _ ___| |__ ___ ___
14+
| | | | | |/ __| _ \ / _ \/ _ \
15+
| |__| |_| | (__| | | | __/ __/
16+
|_____\__, |\___|_| |_|\___|\___|
17+
| | |___/ _ __ __ ___ _____| |
18+
| | / _'\'' | '\''__/ _'\'' \ \ / / _ \ |
19+
| |__| (_| | | | (_| |\ V / __/ |
20+
|_____\__,_|_| \__,_| \_/ \___|_|
21+
22+
-------------------------------------
23+
Latest Commit: '$shorthash'
24+
https://github.com/LycheeOrg/Lychee-Laravel/commit/'$longhash'
25+
-------------------------------------'
26+
627
echo "**** Make sure the /conf and /uploads folders exist ****"
728
[ ! -f /conf ] && \
829
mkdir -p /conf

0 commit comments

Comments
 (0)