aboutsummaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-10-10 15:07:45 -0400
committerParker Berberian <pberberian@iol.unh.edu>2019-10-10 15:07:45 -0400
commitab24a8de07dac62569ec79425241a6b974ed32a9 (patch)
tree55cc7ed4f570f36f777650f4fab2d1a60d25e218 /update.sh
parentf5025949a43415ae92b0885f3e61c43538f5c7b7 (diff)
Updated LaaS-ReflabHEADmaster
We have had divergent repositories for the code that runs in UNH because of difficulties with Gerrit and developer laziness. This incorporates the previous change (removing all references to pharos) and updates everything to what is currently running. Change-Id: I5c83c70d5ca686dfa03d49936fdce1603cdac16c Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/update.sh b/update.sh
index fb031cc..abf5d69 100755
--- a/update.sh
+++ b/update.sh
@@ -14,8 +14,16 @@
# See the License for the specific language governing permissions and #
# limitations under the License. #
##############################################################################
+case "$1" in
+ "--no-git")
+ true;; # noop
+ "")
+ git pull;;
+ *)
+ echo "I did not understand the arg $1"
+ exit 1
+ ;;
+esac
-if git pull ; then
- rm -rf /opt/stackstorm/packs/laas/* && cp -r laas/ /opt/stackstorm/packs/
- st2ctl reload --register-all
-fi
+rm -rf /opt/stackstorm/packs/laas/* && cp -r laas/ /opt/stackstorm/packs/
+st2ctl reload --register-all