FEATURE: Using static version of CouchPotato

This commit is contained in:
Dominique Barton committed 2016-03-01 20:41:12 +01:00
1 parent a29c3a26ab
commit 4041c937ae
3 files changed
+18 -53

No files matched your search

-20
View File
@@ -15,7 +15,6 @@ echo " UID: ${CP_UID:=666}"
echo " GID: ${CP_GID:=666}"
echo
echo " Config: ${CONFIG:=/datadir/config.ini}"
echo " Version: ${VERSION:=master}"
echo
#
@@ -37,25 +36,6 @@ chown -R ${USER}: /couchpotato
chown ${USER}: /datadir /media $(dirname ${CONFIG})
echo "[DONE]"
#
# Update CouchPotato and checkout requested version.
#
printf "Updating CouchPotato git repository... "
git pull -q
echo "[DONE]"
printf "Getting current version... "
CURRENT_VERSION=$(git rev-parse --abbrev-ref HEAD)
echo "[${CURRENT_VERSION}]"
if [[ "${CURRENT_VERSION}" != "${VERSION}" ]]
then
printf "Checking out CouchPotato version '${VERSION}'... "
git checkout -q ${VERSION}
echo "[DONE]"
fi
#
# Finally, start CouchPotato.
#