Update rwMarkable

This commit is contained in:
tremor021 2025-10-01 18:54:42 +02:00
parent 57c9deb39b
commit 81d9e534ec

View File

@ -16,15 +16,13 @@ update_os
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
fetch_and_deploy_gh_release "rwMarkable" "fccview/rwMarkable" "tarball" "latest" "/opt/rwmarkable" fetch_and_deploy_gh_release "rwMarkable" "fccview/rwMarkable" "tarball" "latest" "/opt/rwmarkable"
msg_info "Building app" msg_info "Installing ${APPLICATION}"
cd /opt/rwmarkable cd /opt/rwmarkable
$STD yarn --frozen-lockfile $STD yarn --frozen-lockfile
$STD yarn next telemetry disable $STD yarn next telemetry disable
$STD yarn build $STD yarn build
mkdir -p data/{users,checklists,notes} mkdir -p data/{users,checklists,notes}
msg_ok "Successfully built app"
msg_info "Creating .env file"
cat <<EOF >/opt/rwmarkable/.env cat <<EOF >/opt/rwmarkable/.env
NODE_ENV=production NODE_ENV=production
# HTTPS=true # HTTPS=true
@ -38,9 +36,9 @@ NODE_ENV=production
# OIDC_CLIENT_SECRET=your_client_secret # Enable confidential client mode with client authentication # OIDC_CLIENT_SECRET=your_client_secret # Enable confidential client mode with client authentication
# OIDC_ADMIN_GROUPS=admins # Map provider groups to admin role # OIDC_ADMIN_GROUPS=admins # Map provider groups to admin role
EOF EOF
msg_ok "Created .env file" msg_ok "Installed ${APPLICATION}"
msg_info "Creating rwMarkable Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/rwmarkable.service cat <<EOF >/etc/systemd/system/rwmarkable.service
[Unit] [Unit]
Description=rwMarkable server Description=rwMarkable server
@ -56,7 +54,8 @@ Restart=on-abnormal
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl enable -q --now rwmarkable systemctl enable -q --now rwmarkable
msg_ok "Created rwMarkable Service" msg_ok "Created Service"
motd_ssh motd_ssh
customize customize