I created an updated version of the "Script for Initial Setup of Omeka S on Amazon Lightsail" introduced in the following article. This version adds "Easy Admin," which makes it easy to add themes and modules, and also fixes permissions for related directories.

Script for Initial Setup of Omeka S on Amazon Lightsail
Script for initial setup of Omeka S on Amazon Lightsail
I hope you find this helpful.
# 変数
OMEKA_PATH=/home/bitnami/htdocs/omeka-s
## ハイフンは含めない
DBNAME=omeka_s
VERSION=3.2.3
#############
set -e
mkdir $OMEKA_PATH
# Omekaのダウンロード
wget https://github.com/omeka/omeka-s/releases/download/v$VERSION/omeka-s-$VERSION.zip
unzip -q omeka-s-$VERSION.zip
mv omeka-s/* $OMEKA_PATH
# .htaccessの移動
mv omeka-s/.htaccess $OMEKA_PATH
# 不要なフォルダの削除
rm -rf omeka-s
rm omeka-s-$VERSION.zip
# 元からあったindex.htmlを削除(もし存在すれば)
if [ -e $OMEKA_PATH/index.html ]; then
rm $OMEKA_PATH/index.html
fi
# データベースの作成
cat <<EOF > sql.cnf
[client]
user = root
password = $(cat /home/bitnami/bitnami_application_password)
host = localhost
EOF
mysql --defaults-extra-file=sql.cnf -e "create database $DBNAME";
# Omeka Sの設定
cat <<EOF > $OMEKA_PATH/config/database.ini
user = root
password = $(cat bitnami_application_password)
dbname = $DBNAME
host = localhost
EOF
sudo chown -R daemon:daemon $OMEKA_PATH/files
sudo apt install imagemagick -y
# Module
cd $OMEKA_PATH/modules
## easy admin
wget https://github.com/Daniel-KM/Omeka-S-module-EasyAdmin/releases/download/3.3.7/EasyAdmin-3.3.7.zip
unzip EasyAdmin-3.3.7.zip
rm EasyAdmin-3.3.7.zip
sudo chown -R daemon:daemon $OMEKA_PATH/files
sudo chown -R daemon:daemon $OMEKA_PATH/modules
sudo chown -R daemon:daemon $OMEKA_PATH/themes



Comments
…