Skip to content

Commit f151c80

Browse files
authored
rwMarkable: migrate from rwMarkable => jotty (#8554)
1 parent 5f607a3 commit f151c80

File tree

5 files changed

+153
-71
lines changed

5 files changed

+153
-71
lines changed

ct/jotty.sh

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#!/usr/bin/env bash
2+
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: vhsdream
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/fccview/jotty
7+
8+
APP="jotty"
9+
var_tags="${var_tags:-tasks;notes}"
10+
var_cpu="${var_cpu:-2}"
11+
var_ram="${var_ram:-3072}"
12+
var_disk="${var_disk:-6}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-13}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
27+
if [[ ! -d /opt/jotty ]]; then
28+
msg_error "No ${APP} Installation Found!"
29+
exit
30+
fi
31+
32+
if check_for_gh_release "jotty" "fccview/jotty"; then
33+
msg_info "Stopping Service"
34+
systemctl stop jotty
35+
msg_ok "Stopped Service"
36+
37+
msg_info "Backing up configuration & data"
38+
cd /opt/jotty
39+
cp ./.env /opt/app.env
40+
$STD tar -cf /opt/data_config.tar ./data ./config
41+
msg_ok "Backed up configuration & data"
42+
43+
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
44+
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jotty" "fccview/jotty" "tarball" "latest" "/opt/jotty"
45+
46+
msg_info "Updating app"
47+
cd /opt/jotty
48+
$STD yarn --frozen-lockfile
49+
$STD yarn next telemetry disable
50+
$STD yarn build
51+
msg_ok "Updated app"
52+
53+
msg_info "Restoring configuration & data"
54+
mv /opt/app.env /opt/jotty/.env
55+
$STD tar -xf /opt/data_config.tar
56+
msg_ok "Restored configuration & data"
57+
58+
msg_info "Restarting ${APP} service"
59+
systemctl start jotty
60+
msg_ok "Restarted ${APP} service"
61+
rm /opt/data_config.tar
62+
msg_ok "Updated Successfully"
63+
fi
64+
exit
65+
}
66+
67+
start
68+
build_container
69+
description
70+
71+
msg_ok "Completed Successfully!\n"
72+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
73+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
74+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

ct/rwmarkable.sh

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -29,38 +29,41 @@ function update_script() {
2929
exit
3030
fi
3131

32-
if check_for_gh_release "rwMarkable" "fccview/rwMarkable"; then
33-
msg_info "Stopping Service"
34-
systemctl stop rwmarkable
35-
msg_ok "Stopped Service"
32+
msg_info "Stopping service"
33+
systemctl -q disable --now rwmarkable
34+
msg_ok "Stopped Service"
3635

37-
msg_info "Backing up configuration & data"
38-
cd /opt/rwmarkable
39-
cp ./.env /opt/app.env
40-
$STD tar -cf /opt/data_config.tar ./data ./config
41-
msg_ok "Backed up configuration & data"
36+
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
37+
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jotty" "fccview/jotty" "tarball" "latest" "/opt/jotty"
4238

43-
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
44-
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "rwMarkable" "fccview/rwMarkable" "tarball" "latest" "/opt/rwmarkable"
39+
msg_info "Updating app"
40+
cd /opt/jotty
41+
$STD yarn --frozen-lockfile
42+
$STD yarn next telemetry disable
43+
$STD yarn build
44+
msg_ok "Updated app"
4545

46-
msg_info "Updating app"
47-
cd /opt/rwmarkable
48-
$STD yarn --frozen-lockfile
49-
$STD yarn next telemetry disable
50-
$STD yarn build
51-
msg_ok "Updated app"
46+
msg_info "Migrating configuration & data"
47+
cp /opt/rwmarkable/.env /opt/jotty/.env
48+
mkdir -p /opt/jotty/data
49+
cp -r /opt/rwmarkable/data/* /opt/jotty/data
50+
cp -r /opt/rwmarkable/config/* /opt/jotty/config
51+
msg_ok "Migrated configuration & data"
5252

53-
msg_info "Restoring configuration & data"
54-
mv /opt/app.env /opt/rwmarkable/.env
55-
$STD tar -xf /opt/data_config.tar
56-
msg_ok "Restored configuration & data"
53+
msg_info "Patching systemd service file"
54+
sed -i 's/rw[M|m]arkable/jotty/g' /etc/systemd/system/rwmarkable.service
55+
mv /etc/systemd/system/rwmarkable.service /etc/systemd/system/jotty.service
56+
systemctl daemon-reload
57+
msg_ok "Patched systemd service file"
5758

58-
msg_info "Restarting ${APP} service"
59-
systemctl start rwmarkable
60-
msg_ok "Restarted ${APP} service"
61-
rm /opt/data_config.tar
62-
msg_ok "Updated Successfully"
63-
fi
59+
msg_info "Patching update script"
60+
sed -i 's/rwmarkable/jotty/g' /usr/bin/update
61+
msg_ok "Patched update script"
62+
63+
msg_info "Starting jotty service"
64+
systemctl -q enable --now jotty
65+
msg_ok "Started jotty service"
66+
msg_ok "Migrated Successfully!"
6467
exit
6568
}
6669

frontend/public/json/jotty.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "jotty",
3+
"slug": "jotty",
4+
"categories": [
5+
12
6+
],
7+
"date_created": "2025-10-09",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 3000,
12+
"documentation": "https://github.com/fccview/jotty/blob/main/README.md",
13+
"website": "https://github.com/fccview/jotty",
14+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/jotty.webp",
15+
"config_path": "/opt/jotty/.env",
16+
"description": "A simple, self-hosted app for your checklists and notes. Tired of bloated, cloud-based to-do apps? jotty is a lightweight alternative for managing your personal checklists and notes. It's built with Next.js 14, is easy to deploy, and keeps all your data on your own server.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/jotty.sh",
21+
"resources": {
22+
"cpu": 2,
23+
"ram": 3072,
24+
"hdd": 6,
25+
"os": "debian",
26+
"version": "13"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": [
35+
{
36+
"text": "jotty was previously named rwMarkable",
37+
"type": "info"
38+
}
39+
]
40+
}

frontend/public/json/rwmarkable.json

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (c) 2021-2025 community-scripts ORG
44
# Author: vhsdream
55
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6-
# Source: https://github.com/fccview/rwMarkable
6+
# Source: https://github.com/fccview/jotty
77

88
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
99
color
@@ -14,16 +14,16 @@ network_check
1414
update_os
1515

1616
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
17-
fetch_and_deploy_gh_release "rwMarkable" "fccview/rwMarkable" "tarball" "latest" "/opt/rwmarkable"
17+
fetch_and_deploy_gh_release "jotty" "fccview/jotty" "tarball" "latest" "/opt/jotty"
1818

1919
msg_info "Installing ${APPLICATION}"
20-
cd /opt/rwmarkable
20+
cd /opt/jotty
2121
$STD yarn --frozen-lockfile
2222
$STD yarn next telemetry disable
2323
$STD yarn build
2424
mkdir -p data/{users,checklists,notes}
2525

26-
cat <<EOF >/opt/rwmarkable/.env
26+
cat <<EOF >/opt/jotty/.env
2727
NODE_ENV=production
2828
# HTTPS=true
2929
@@ -39,21 +39,21 @@ EOF
3939
msg_ok "Installed ${APPLICATION}"
4040

4141
msg_info "Creating Service"
42-
cat <<EOF >/etc/systemd/system/rwmarkable.service
42+
cat <<EOF >/etc/systemd/system/jotty.service
4343
[Unit]
44-
Description=rwMarkable server
44+
Description=jotty server
4545
After=network.target
4646
4747
[Service]
48-
WorkingDirectory=/opt/rwmarkable
49-
EnvironmentFile=/opt/rwmarkable/.env
48+
WorkingDirectory=/opt/jotty
49+
EnvironmentFile=/opt/jotty/.env
5050
ExecStart=yarn start
5151
Restart=on-abnormal
5252
5353
[Install]
5454
WantedBy=multi-user.target
5555
EOF
56-
systemctl enable -q --now rwmarkable
56+
systemctl enable -q --now jotty
5757
msg_ok "Created Service"
5858

5959
motd_ssh

0 commit comments

Comments
 (0)