Parcourir la source

Warn about rethinkdb not supporting arm

Bob Mottram il y a 7 ans
Parent
révision
7dbae43f3b
2 fichiers modifiés avec 13 ajouts et 1 suppressions
  1. 5
    0
      src/freedombone-app-turtl
  2. 8
    1
      src/freedombone-utils-database

+ 5
- 0
src/freedombone-app-turtl Voir le fichier

@@ -442,6 +442,11 @@ __ENDCONFIG__
442 442
     # start the turtl server
443 443
     systemctl restart rethinkdb
444 444
 
445
+    if [ ! -f $TURTL_BASE_DIR/quicklisp/setup.lisp ]; then
446
+        echo $"$TURTL_BASE_DIR/quicklisp/setup.lisp was not found"
447
+        exit 6238234
448
+    fi
449
+
445 450
     echo '[Unit]' > /etc/systemd/system/turtl.service
446 451
     echo 'Description=Note taking service' >> /etc/systemd/system/turtl.service
447 452
     echo 'Documentation=http://turtl.it' >> /etc/systemd/system/turtl.service

+ 8
- 1
src/freedombone-utils-database Voir le fichier

@@ -361,12 +361,19 @@ function database_reinstall {
361 361
 }
362 362
 
363 363
 function install_rethinkdb {
364
+    if [[ "$(arch)" == "arm"* ]]; then
365
+        echo $'rethinkdb does not currently support ARM debian packages'
366
+        echo $"See http://download.rethinkdb.com/apt/dists/${DEBIAN_VERSION}/main"
367
+        exit 723723452
368
+    fi
369
+
364 370
     if [ ! -d $INSTALL_DIR ]; then
365 371
         mkdir -p $INSTALL_DIR
366 372
     fi
367 373
 
368 374
     cd $INSTALL_DIR
369
-    echo "deb http://download.rethinkdb.com/apt `lsb_release -cs` main" | tee /etc/apt/sources.list.d/rethinkdb.list
375
+
376
+    echo "deb http://download.rethinkdb.com/apt $DEBIAN_VERSION main" | tee /etc/apt/sources.list.d/rethinkdb.list
370 377
 
371 378
     wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | apt-key add -
372 379
     apt-get update