BUGFIX: Updating git repo before checkout
This commit is contained in:
1 parent
314ffd49be
commit
93ed43808a
1 file changed
+3
-3
@@ -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}
|
||||||
Reference in new issue
Block a user