From e79904f80f45b61f7792d4cd054113948c000cec Mon Sep 17 00:00:00 2001 From: tremor021 Date: Tue, 24 Jun 2025 13:12:37 +0200 Subject: [PATCH 1/2] Update notesnook --- install/notesnook-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/notesnook-install.sh b/install/notesnook-install.sh index a396c98f..f5273eb3 100644 --- a/install/notesnook-install.sh +++ b/install/notesnook-install.sh @@ -18,16 +18,16 @@ $STD apt-get install -y make git msg_ok "Installed Dependencies" NODE_MODULE="yarn" setup_nodejs - -msg_info "Installing Notesnook (Patience)" fetch_and_deploy_gh_release "notesnook" "streetwriters/notesnook" "tarball" + +msg_info "Configuring Notesnook (Patience)" cd /opt/notesnook export NODE_OPTIONS="--max-old-space-size=2560" mkdir -p certs $STD openssl req -x509 -newkey rsa:4096 -keyout certs/key.pem -out certs/cert.pem -days 365 -nodes -subj "/CN=localhost" $STD npm install $STD npm run build:web -msg_ok "Installed Notesnook" +msg_ok "Configured Notesnook" msg_info "Creating Service" cat </etc/systemd/system/notesnook.service From ffe4c3a24f8a9bf49716b53a429a6d2260c61947 Mon Sep 17 00:00:00 2001 From: tremor021 Date: Tue, 24 Jun 2025 13:14:49 +0200 Subject: [PATCH 2/2] Update notesnook --- install/notesnook-install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install/notesnook-install.sh b/install/notesnook-install.sh index f5273eb3..cf38832e 100644 --- a/install/notesnook-install.sh +++ b/install/notesnook-install.sh @@ -14,7 +14,9 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y make git +$STD apt-get install -y \ + make \ + git msg_ok "Installed Dependencies" NODE_MODULE="yarn" setup_nodejs @@ -24,7 +26,6 @@ msg_info "Configuring Notesnook (Patience)" cd /opt/notesnook export NODE_OPTIONS="--max-old-space-size=2560" mkdir -p certs -$STD openssl req -x509 -newkey rsa:4096 -keyout certs/key.pem -out certs/cert.pem -days 365 -nodes -subj "/CN=localhost" $STD npm install $STD npm run build:web msg_ok "Configured Notesnook" @@ -39,7 +40,7 @@ After=network-online.target Type=simple User=root WorkingDirectory=/opt/notesnook -ExecStart=/usr/bin/npx serve -l tcp://0.0.0.0:3000 apps/web/build --ssl-cert certs/cert.pem --ssl-key certs/key.pem +ExecStart=/usr/bin/npx serve -l tcp://0.0.0.0:3000 apps/web/build Restart=on-failure [Install]