Parcourir la source

Merge pull request #336 from meienberger/release/1.1.1

Release 1.1.1
Nicolas Meienberger il y a 2 ans
Parent
commit
1827ad3cca
2 fichiers modifiés avec 4 ajouts et 5 suppressions
  1. 1 1
      package.json
  2. 3 4
      scripts/app.sh

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "runtipi",
   "name": "runtipi",
-  "version": "1.1.0",
+  "version": "1.1.1",
   "description": "A homeserver for everyone",
   "description": "A homeserver for everyone",
   "scripts": {
   "scripts": {
     "copy:migrations": "mkdir -p dist/migrations && cp -r ./src/server/migrations dist",
     "copy:migrations": "mkdir -p dist/migrations && cp -r ./src/server/migrations dist",

+ 3 - 4
scripts/app.sh

@@ -181,7 +181,7 @@ function start_app() {
     write_log "Failed to pull app ${app}"
     write_log "Failed to pull app ${app}"
   fi
   fi
 
 
-  if ! compose "${app}" up --detach; then
+  if ! compose "${app}" up --detach --force-recreate --remove-orphans; then
     write_log "Failed to start app ${app}"
     write_log "Failed to start app ${app}"
     exit 1
     exit 1
   fi
   fi
@@ -217,15 +217,14 @@ function uninstall_app() {
 function update_app() {
 function update_app() {
   local app="${1}"
   local app="${1}"
 
 
-  if ! compose "${app}" up --detach; then
+  if ! compose "${app}" up --detach --force-recreate --remove-orphans; then
     write_log "Failed to update app ${app}"
     write_log "Failed to update app ${app}"
-    exit 1
   fi
   fi
 
 
   if ! compose "${app}" down --rmi all --remove-orphans; then
   if ! compose "${app}" down --rmi all --remove-orphans; then
     # just stop it if we can't remove the images
     # just stop it if we can't remove the images
     if ! compose "${app}" rm --force --stop; then
     if ! compose "${app}" rm --force --stop; then
-      write_log "Failed to uninstall app ${app}"
+      write_log "Failed to update app ${app}"
       exit 1
       exit 1
     fi
     fi
   fi
   fi