BUGFIX: Updating git repo before checkout

This commit is contained in:
Dominique Barton
2015-12-22 10:50:56 +01:00
parent 314ffd49be
commit 93ed43808a
+3 -3
View File
@@ -1,14 +1,14 @@
#!/bin/sh
echo "Updating CouchPotato git repository..."
git pull
if [[ -n "${VERSION}" ]]
then
echo "Checking out SABnzbd version '${VERSION}'..."
git checkout ${VERSION}
fi
echo "Updating CouchPotato..."
git pull
CONFIG=${CONFIG:-/datadir/config.ini}
echo "Starting CouchPotato with config '${CONFIG}'..."
exec ./CouchPotato.py --data_dir=/datadir --config_file=${CONFIG}