瀏覽代碼

Warn if pleroma cannot be installed

Bob Mottram 8 年之前
父節點
當前提交
55c68abc6e
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. 4
    1
      src/freedombone-app-gnusocial

+ 4
- 1
src/freedombone-app-gnusocial 查看文件

999
 
999
 
1000
     # Currently Pleroma won't install on ARM systems
1000
     # Currently Pleroma won't install on ARM systems
1001
     # because it uses node-sass which doesn't support ARM
1001
     # because it uses node-sass which doesn't support ARM
1002
-    if [[ "$(arch)" != "arm"* ]]; then
1002
+    if [[ "$(arch)" == "arm"* ]]; then
1003
+        echo -m $'WARNING: Pleroma currently does not support ARM '
1004
+        echo $'architecture, so it will not be installed'
1005
+    else
1003
         function_check install_nodejs
1006
         function_check install_nodejs
1004
         install_nodejs pleroma-gnusocial
1007
         install_nodejs pleroma-gnusocial
1005
         install_pleroma "gnusocial" "$GNUSOCIAL_DOMAIN_NAME" "$GNUSOCIAL_BACKGROUND_IMAGE_URL" "$GNUSOCIAL_TITLE"
1008
         install_pleroma "gnusocial" "$GNUSOCIAL_DOMAIN_NAME" "$GNUSOCIAL_BACKGROUND_IMAGE_URL" "$GNUSOCIAL_TITLE"