Fix: セットアップスクリプトのyarn installでエラーが出る (#292)

This commit is contained in:
KMY(雪あすか) 2023-11-14 12:24:15 +09:00 committed by GitHub
parent eda8dae5a7
commit 927e02e051
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 365 additions and 0 deletions

27
install/9.0/setup3.sh Normal file
View file

@ -0,0 +1,27 @@
cat << EOF
================== [kmyblue setup script 3] ======================
Copy setting files and services
EOF
# これを設定しておかないと、Web表示時にNginxがPermission Errorを起こす
chmod o+x /home/mastodon
# 必要なファイルをコピー
cp /home/mastodon/live/dist/nginx.conf /etc/nginx/sites-available/mastodon
ln -s /etc/nginx/sites-available/mastodon /etc/nginx/sites-enabled/mastodon
cp /home/mastodon/live/dist/mastodon-*.service /etc/systemd/system/
systemctl daemon-reload
# ---------------------------------------------------
cat << EOF
============== [kmyblue setup script 3 completed] ================
Input this command to continue setup:
sudo su - mastodon
./setup4.sh
EOF