Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 1 addition & 35 deletions migrations.sh
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
#! /bin/bash

exec 3>&1

files=($(find migrations -type f))
options=()
index=1

for file in ${files[@]}; do
options+=("$index ${file#migrations/} off")
declare -p options
((index++))
done

indexes=$(dialog \
--nocancel --extra-button --extra-label disable --ok-label enable \
--checklist "Migrations" 0 0 ${#options[@]} ${options[@]} \
2>&1 1>&3)

case $? in
0)
clear
set -x
for index in $indexes; do
chmod +x ${files[$(($index-1))]}
done
;;
3)
clear
set -x
for index in $indexes; do
chmod -x ${files[$(($index-1))]}
done
;;
esac

exec 3>&-
find migrations/ -perm /111 -type f
Empty file modified migrations/pre_refresh/01-check_avx.sh
100755 → 100644
Empty file.
11 changes: 5 additions & 6 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ summary: An Open Source Slack Alternative
description: |
Have your own Slack like online chat, built with Meteor. https://rocket.chat/

epoch: 10
epoch: 6*

grade: stable
confinement: strict
Expand Down Expand Up @@ -80,14 +80,13 @@ parts:
#- on amd64: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-4.4.15.tgz
- on amd64: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-5.0.15.tgz
# - on arm64: https://fastdl.mongodb.org/linux/mongodb-linux-arm64-ubuntu1604-3.6.23.tgz
- on arm64: https://fastdl.mongodb.org/linux/mongodb-linux-arm64-ubuntu1604-4.0.28.tgz
- on arm64: https://fastdl.mongodb.org/linux/mongodb-linux-aarch64-ubuntu2004-5.0.22.tgz
stage-packages:
# For the dependecies:
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu-tarball/#install-mongodb-community-edition
- openssl
- liblzma5
- on amd64: [libcurl4]
- on arm64: [libcurl3]
- libcurl4
filesets:
excluded:
- -LICENSE-Community.txt
Expand All @@ -112,7 +111,7 @@ parts:
source:
#- on amd64: https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2004-x86_64-100.5.0.tgz
- on amd64: https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2004-x86_64-100.7.0.tgz
# - on arm64: https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2004-arm64-100.5.0.tgz
- on arm64: https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2004-arm64-100.9.0.tgz
stage:
- bin/mongodump
- bin/mongorestore
Expand All @@ -125,7 +124,7 @@ parts:
#- on amd64: https://nodejs.org/download/release/v14.19.3/node-v14.19.3-linux-x64.tar.xz
- on amd64: https://nodejs.org/download/release/v14.21.2/node-v14.21.2-linux-x64.tar.xz
#- on arm64: https://nodejs.org/download/release/v12.22.8/node-v12.22.8-linux-arm64.tar.gz
- on arm64: https://nodejs.org/download/release/v14.18.3/node-v14.18.3-linux-arm64.tar.gz
- on arm64: https://nodejs.org/download/release/v14.21.3/node-v14.21.3-linux-arm64.tar.gz
stage:
- bin
- include
Expand Down