From 0c63e64662c785c5fdfd06e712aab568870ea232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Wed, 1 Oct 2025 10:39:55 +0200 Subject: [PATCH] Pin version (#8023) --- ct/plant-it.sh | 6 ++++-- install/plant-it-install.sh | 16 ++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/ct/plant-it.sh b/ct/plant-it.sh index 6635178f9..e8f584558 100644 --- a/ct/plant-it.sh +++ b/ct/plant-it.sh @@ -32,8 +32,10 @@ function update_script() { systemctl stop plant-it msg_ok "Stopped $APP" - USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "plant-it" "MDeLuise/plant-it" "singlefile" "latest" "/opt/plant-it/backend" "server.jar" - fetch_and_deploy_gh_release "plant-it-front" "MDeLuise/plant-it" "prebuild" "latest" "/opt/plant-it/frontend" "client.tar.gz" + USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "plant-it" "MDeLuise/plant-it" "singlefile" "0.10.0" "/opt/plant-it/backend" "server.jar" + fetch_and_deploy_gh_release "plant-it-front" "MDeLuise/plant-it" "prebuild" "0.10.0" "/opt/plant-it/frontend" "client.tar.gz" + msg_warn "Application is updated to latest Web version (v0.10.0). There will be no more updates available." + msg_warn "Please read: https://github.com/MDeLuise/plant-it/releases/tag/1.0.0" msg_info "Starting $APP" systemctl start plant-it diff --git a/install/plant-it-install.sh b/install/plant-it-install.sh index 0b11d4c1d..6d2db9135 100644 --- a/install/plant-it-install.sh +++ b/install/plant-it-install.sh @@ -15,8 +15,8 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - redis \ - nginx + redis \ + nginx msg_ok "Installed Dependencies" setup_mariadb @@ -31,15 +31,15 @@ $STD mariadb -u root -e "CREATE DATABASE $DB_NAME;" $STD mariadb -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASS';" $STD mariadb -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;" { - echo "Plant-it Credentials" - echo "Plant-it Database User: $DB_USER" - echo "Plant-it Database Password: $DB_PASS" - echo "Plant-it Database Name: $DB_NAME" + echo "Plant-it Credentials" + echo "Plant-it Database User: $DB_USER" + echo "Plant-it Database Password: $DB_PASS" + echo "Plant-it Database Name: $DB_NAME" } >>~/plant-it.creds msg_ok "Set up MariaDB" -USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "plant-it" "MDeLuise/plant-it" "singlefile" "latest" "/opt/plant-it/backend" "server.jar" -fetch_and_deploy_gh_release "plant-it-front" "MDeLuise/plant-it" "prebuild" "latest" "/opt/plant-it/frontend" "client.tar.gz" +USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "plant-it" "MDeLuise/plant-it" "singlefile" "0.10.0" "/opt/plant-it/backend" "server.jar" +fetch_and_deploy_gh_release "plant-it-front" "MDeLuise/plant-it" "prebuild" "0.10.0" "/opt/plant-it/frontend" "client.tar.gz" msg_info "Configured Plant-it" mkdir -p /opt/plant-it-data