install: missing idempotent aspects in install and uninstall
[osm/devops.git] / installers / install_osm.sh
index 9b2e975..290b519 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 REPOSITORY_BASE=https://osm-download.etsi.org/repository/osm/debian
 RELEASE=ReleaseFOUR
-REPOSITORY=testing
+REPOSITORY=stable
 
 add_repo() {
   REPO_CHECK="^$1"
@@ -17,5 +17,6 @@ add_repo() {
 }
 
 add_repo "deb [arch=amd64] $REPOSITORY_BASE/$RELEASE $REPOSITORY devops"
-sudo DEBIAN_FRONTEND=noninteractive  apt-get install osm-devops
+sudo DEBIAN_FRONTEND=noninteractive apt-get -q update
+sudo DEBIAN_FRONTEND=noninteractive apt-get install osm-devops
 /usr/share/osm-devops/installers/full_install_osm.sh -R $RELEASE -r $REPOSITORY -D /usr/share/osm-devops "$@"