BUGFIX: Updating git repo before checkout

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