Skip to content

Commit

Permalink
v3.2.1
Browse files Browse the repository at this point in the history
nodesourceの変更を適用
  • Loading branch information
tamaina authored Dec 23, 2023
1 parent 692a604 commit 35a096d
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 6 deletions.
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# v3
For Misskey v13 production and later RC (since 13.0.0-rc.10)

The English version is available at https://github.com/joinmisskey/bash-install/releases .

## v3.2.1
Node.jsのダウンロード元(nodesource提供)が変更になりました。
次のコマンドを実行し、Node.jsをアップデートしてください。

```
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
NODE_MAJOR=20 echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt install -y nodejs
```

※Misskey v2023.12.0以降ではNode.jsの要求バージョンが上がったため必須となります。

## v3.2.0
- systemd環境ではjemallocを使用するようにしました。
`sudo apt install libjemalloc-dev`を実行し、`/etc/systemd/system/example.com.service``Environment="NODE_ENV=production"`の下に`Environment="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2"`を書き足してください。arm64環境では`x86_64``aarch64`にしてください.
Expand All @@ -15,7 +30,9 @@ Node.js v20をインストールするように変更しました。
まず、次のコマンドでv20をインストールします。

```
curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
NODE_MAJOR=20 echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt install -y nodejs
```

Expand Down
2 changes: 1 addition & 1 deletion README.en.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Misskey install shell script v3.2.0
# Misskey install shell script v3.2.1
Install Misskey with one shell script!

You can install misskey on an Ubuntu server just by answering some questions.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Misskey install shell script v3.2.0
# Misskey install shell script v3.2.1

Misskeyを簡単にインストールするためのシェルスクリプトができました!

Expand Down
12 changes: 10 additions & 2 deletions ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
version="3.2.0";
version="3.2.1";
NODE_MAJOR="20";

tput setaf 4;
echo "";
Expand Down Expand Up @@ -386,6 +387,11 @@ else
fi
fi

tput setaf 3;
echo "Process: mkdir -p /usr/share/keyrings;";
tput setaf 7;
sudo mkdir -p /usr/share/keyrings;

tput setaf 3;
echo "Process: add misskey user ($misskey_user);";
tput setaf 7;
Expand Down Expand Up @@ -544,7 +550,9 @@ if [ $method == "systemd" ]; then
tput setaf 3;
echo "Process: prepare node.js;"
tput setaf 7;
curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -;
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/nodesource.gpg;
echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list;

else
tput setaf 3;
echo "Process: prepare docker;"
Expand Down
2 changes: 1 addition & 1 deletion update.ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
version="3.2.0";
version="3.2.1";

tput setaf 2;
echo "Check: root user;";
Expand Down

0 comments on commit 35a096d

Please sign in to comment.