From e447549c20d9986767ef53848384ab33abc87cef Mon Sep 17 00:00:00 2001 From: Bas van den Berg <74251551+bvdberg01@users.noreply.github.com> Date: Sun, 25 May 2025 21:09:57 +0200 Subject: [PATCH 1/6] Update bar-assistant.sh --- ct/bar-assistant.sh | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/ct/bar-assistant.sh b/ct/bar-assistant.sh index a7b67fa..0066c12 100644 --- a/ct/bar-assistant.sh +++ b/ct/bar-assistant.sh @@ -34,9 +34,9 @@ function update_script() { RELEASE_SALTRIM=$(curl -s https://api.github.com/repos/karlomikus/vue-salt-rim/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE_BARASSISTANT}" != "$(cat /opt/${APP}_version.txt)" ]]; then - msg_info "Stopping Service" + msg_info "Stopping nginx" systemctl stop nginx - msg_ok "Stopped Service" + msg_ok "Stopped nginx" msg_info "Updating ${APP} to v${RELEASE_BARASSISTANT}" cd /opt @@ -59,9 +59,9 @@ function update_script() { echo "${RELEASE_BARASSISTANT}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE_BARASSISTANT}" - msg_info "Starting Service" + msg_info "Starting nginx" systemctl start nginx - msg_ok "Started Service" + msg_ok "Started nginx" msg_info "Cleaning up" rm -rf /opt/barassistant.zip @@ -72,9 +72,10 @@ function update_script() { fi if [[ ! -f /opt/vue-salt-rim_version.txt ]] || [[ "${RELEASE_SALTRIM}" != "$(cat /opt/vue-salt-rim_version.txt)" ]]; then - msg_info "Stopping Service" + msg_info "Updating Salt Rim + msg_info "Stopping nginx" systemctl stop nginx - msg_ok "Stopped Service" + msg_ok "Stopped nginx" msg_info "Updating Salt Rim to v${RELEASE_SALTRIM}" cd /opt @@ -89,22 +90,23 @@ function update_script() { echo "${RELEASE_SALTRIM}" >/opt/vue-salt-rim_version.txt msg_ok "Updated $APP to v${RELEASE_SALTRIM}" - msg_info "Starting Service" + msg_info "Starting nginx" systemctl start nginx - msg_ok "Started Service" + msg_ok "Started nginx" msg_info "Cleaning up" rm -rf /opt/saltrim.zip rm -rf /opt/vue-salt-rim-backup msg_ok "Cleaned" + msg_ok "Updated" else msg_ok "No update required. Salt Rim is already at v${RELEASE_SALTRIM}" fi if [[ ! -f /opt/meilisearch_version.txt ]] || [[ "${RELEASE_MEILISEARCH}" != "$(cat /opt/meilisearch_version.txt)" ]]; then - msg_info "Stopping Service" + msg_info "Stopping Meilisearch" systemctl stop meilisearch - msg_ok "Stopped Service" + msg_ok "Stopped Meilisearch" msg_info "Updating Meilisearch to ${RELEASE_MEILISEARCH}" cd /opt @@ -112,11 +114,11 @@ function update_script() { curl -fsSL https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb -o meilisearch.deb $STD dpkg -i meilisearch.deb echo "${RELEASE_MEILISEARCH}" >/opt/meilisearch_version.txt - msg_ok "Updated Meilisearch to v${RELEASE_MEILISEARCH}" + msg_ok "Updated Meilisearch to ${RELEASE_MEILISEARCH}" - msg_info "Starting Service" + msg_info "Starting Meilisearch" systemctl start meilisearch - msg_ok "Started Service" + msg_ok "Started Meilisearch" msg_info "Cleaning up" rm -rf "/opt/meilisearch.deb" From 6c4b3c265eec10539f0994018f7dd5f2012ad175 Mon Sep 17 00:00:00 2001 From: Bas van den Berg <74251551+bvdberg01@users.noreply.github.com> Date: Sun, 25 May 2025 21:13:33 +0200 Subject: [PATCH 2/6] Update bar-assistant.sh --- ct/bar-assistant.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ct/bar-assistant.sh b/ct/bar-assistant.sh index 0066c12..68f895d 100644 --- a/ct/bar-assistant.sh +++ b/ct/bar-assistant.sh @@ -72,7 +72,6 @@ function update_script() { fi if [[ ! -f /opt/vue-salt-rim_version.txt ]] || [[ "${RELEASE_SALTRIM}" != "$(cat /opt/vue-salt-rim_version.txt)" ]]; then - msg_info "Updating Salt Rim msg_info "Stopping nginx" systemctl stop nginx msg_ok "Stopped nginx" From 0d7a8ec701a56e9637f966011bf4c2b6aa7618c8 Mon Sep 17 00:00:00 2001 From: tremor021 Date: Sun, 25 May 2025 22:06:14 +0200 Subject: [PATCH 3/6] Update Notesnook --- ct/notesnook.sh | 4 ++-- install/notesnook-install.sh | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ct/notesnook.sh b/ct/notesnook.sh index 4368379..3c9fa67 100644 --- a/ct/notesnook.sh +++ b/ct/notesnook.sh @@ -8,7 +8,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/ APP="notesnook" var_tags="${var_tags:-os}" var_cpu="${var_cpu:-1}" -var_ram="${var_ram:-2048}" +var_ram="${var_ram:-3048}" var_disk="${var_disk:-8}" var_os="${var_os:-debian}" var_version="${var_version:-12}" @@ -35,7 +35,7 @@ function update_script() { msg_info "Updating ${APP}" fetch_and_deploy_gh_release "streetwriters/notesnook" cd /opt/notesnook - export NODE_OPTIONS="--max-old-space-size=1536" + export NODE_OPTIONS="--max-old-space-size=2560" $STD npm install $STD npm run build:web msg_ok "Updated $APP" diff --git a/install/notesnook-install.sh b/install/notesnook-install.sh index 2e193af..5029a4b 100644 --- a/install/notesnook-install.sh +++ b/install/notesnook-install.sh @@ -22,7 +22,7 @@ NODE_MODULE="yarn" install_node_and_modules msg_info "Installing Notesnook" fetch_and_deploy_gh_release "streetwriters/notesnook" cd /opt/notesnook -#export NODE_OPTIONS="--max-old-space-size=2048" +export NODE_OPTIONS="--max-old-space-size=2560" $STD npm install $STD npm run build:web msg_ok "Installed Notesnook" @@ -50,7 +50,6 @@ motd_ssh customize msg_info "Cleaning up" -rm -f "$temp_file" $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned" From 23da55535f5f441710890b410f81d11b143cdd46 Mon Sep 17 00:00:00 2001 From: tremor021 Date: Sun, 25 May 2025 22:11:27 +0200 Subject: [PATCH 4/6] Update Notesnook --- install/notesnook-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/notesnook-install.sh b/install/notesnook-install.sh index 5029a4b..f5cc804 100644 --- a/install/notesnook-install.sh +++ b/install/notesnook-install.sh @@ -19,7 +19,7 @@ msg_ok "Installed Dependencies" NODE_MODULE="yarn" install_node_and_modules -msg_info "Installing Notesnook" +msg_info "Installing Notesnook (Patience)" fetch_and_deploy_gh_release "streetwriters/notesnook" cd /opt/notesnook export NODE_OPTIONS="--max-old-space-size=2560" From b05f16826c637f9cc5e4fcd3d5e803a6d0a20e2d Mon Sep 17 00:00:00 2001 From: tremor021 Date: Sun, 25 May 2025 22:29:30 +0200 Subject: [PATCH 5/6] Update Notesnook --- ct/notesnook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/notesnook.sh b/ct/notesnook.sh index 3c9fa67..e8e24d1 100644 --- a/ct/notesnook.sh +++ b/ct/notesnook.sh @@ -32,7 +32,7 @@ function update_script() { systemctl stop notesnook msg_ok "Stopped Service" - msg_info "Updating ${APP}" + msg_info "Updating ${APP} (Patience)" fetch_and_deploy_gh_release "streetwriters/notesnook" cd /opt/notesnook export NODE_OPTIONS="--max-old-space-size=2560" From c10a7c30006e380dff400f847269d9893a72490e Mon Sep 17 00:00:00 2001 From: tremor021 Date: Sun, 25 May 2025 22:36:49 +0200 Subject: [PATCH 6/6] Update Notesnook --- ct/notesnook.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ct/notesnook.sh b/ct/notesnook.sh index e8e24d1..d584468 100644 --- a/ct/notesnook.sh +++ b/ct/notesnook.sh @@ -33,6 +33,7 @@ function update_script() { msg_ok "Stopped Service" msg_info "Updating ${APP} (Patience)" + rm -rf /opt/notesnook fetch_and_deploy_gh_release "streetwriters/notesnook" cd /opt/notesnook export NODE_OPTIONS="--max-old-space-size=2560" @@ -55,4 +56,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}https://${CL}" +echo -e "${TAB}${GATEWAY}${BGN}https://${IP}:3000${CL}"