mirror of
https://github.com/linuxserver/docker-projectsend.git
synced 2026-02-20 08:39:17 +08:00
Merge pull request #8 from linuxserver/fetch_version_from_github
get version from github
This commit is contained in:
commit
2f5ac76a6b
@ -128,9 +128,11 @@ RUN \
|
||||
install -Dm644 /tmp/patches/xcache.ini /etc/php5/conf.d/xcache.ini && \
|
||||
echo "**** install projectsend ****" && \
|
||||
rm /var/www/localhost/htdocs/index.html && \
|
||||
PROJS_TAG=$(curl -sX GET "https://api.github.com/repos/projectsend/projectsend/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
||||
curl -o \
|
||||
/tmp/ProjectSend.tar.gz -L \
|
||||
"https://codeload.github.com/ignacionelson/ProjectSend/tar.gz/r1053" && \
|
||||
"https://github.com/projectsend/projectsend/archive/$PROJS_TAG.tar.gz" && \
|
||||
tar -zxf \
|
||||
/tmp/ProjectSend.tar.gz --strip-components=1 -C /var/www/localhost/htdocs/ && \
|
||||
mv /var/www/localhost/htdocs/upload /defaults/ && \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user