diff --git a/utils/packpack/startpackpack.sh b/utils/packpack/startpackpack.sh index 75aee96f3..e18dbd127 100755 --- a/utils/packpack/startpackpack.sh +++ b/utils/packpack/startpackpack.sh @@ -117,6 +117,17 @@ commonprep () { exit 1 fi fi + + if [ -e "build/RtspServer" ]; then + echo "Found existing RtspServer..." + else + echo "Cloning RtspServer ..." + git clone https://github.com/ZoneMinder/RtspServer + if [ $? -ne 0 ]; then + echo "ERROR: CakePHP-Enum-Behavior tarball retreival failed..." + exit 1 + fi + fi } # Uncompress the submodule tarballs and move them into place @@ -137,6 +148,13 @@ movecrud () { rmdir web/api/app/Plugin/CakePHP-Enum-Behavior mv -f CakePHP-Enum-Behavior-${CEBVER} web/api/app/Plugin/CakePHP-Enum-Behavior fi + if [ -e "dep/RtspServer/CMakeLists.txt" ]; then + echo "RtspServer already installed..." + else + echo "Copying RtspServer..." + rmdir dep/RtspServer + cp -Rpd build/RtspServer dep/RtspServer + fi } # previsouly part of installzm.sh