Skip to content

Commit 0c63e64

Browse files
authored
Pin version (#8023)
1 parent d83a378 commit 0c63e64

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

ct/plant-it.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ function update_script() {
3232
systemctl stop plant-it
3333
msg_ok "Stopped $APP"
3434

35-
USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "plant-it" "MDeLuise/plant-it" "singlefile" "latest" "/opt/plant-it/backend" "server.jar"
36-
fetch_and_deploy_gh_release "plant-it-front" "MDeLuise/plant-it" "prebuild" "latest" "/opt/plant-it/frontend" "client.tar.gz"
35+
USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "plant-it" "MDeLuise/plant-it" "singlefile" "0.10.0" "/opt/plant-it/backend" "server.jar"
36+
fetch_and_deploy_gh_release "plant-it-front" "MDeLuise/plant-it" "prebuild" "0.10.0" "/opt/plant-it/frontend" "client.tar.gz"
37+
msg_warn "Application is updated to latest Web version (v0.10.0). There will be no more updates available."
38+
msg_warn "Please read: https://github.com/MDeLuise/plant-it/releases/tag/1.0.0"
3739

3840
msg_info "Starting $APP"
3941
systemctl start plant-it

install/plant-it-install.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ update_os
1515

1616
msg_info "Installing Dependencies"
1717
$STD apt-get install -y \
18-
redis \
19-
nginx
18+
redis \
19+
nginx
2020
msg_ok "Installed Dependencies"
2121

2222
setup_mariadb
@@ -31,15 +31,15 @@ $STD mariadb -u root -e "CREATE DATABASE $DB_NAME;"
3131
$STD mariadb -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASS';"
3232
$STD mariadb -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
3333
{
34-
echo "Plant-it Credentials"
35-
echo "Plant-it Database User: $DB_USER"
36-
echo "Plant-it Database Password: $DB_PASS"
37-
echo "Plant-it Database Name: $DB_NAME"
34+
echo "Plant-it Credentials"
35+
echo "Plant-it Database User: $DB_USER"
36+
echo "Plant-it Database Password: $DB_PASS"
37+
echo "Plant-it Database Name: $DB_NAME"
3838
} >>~/plant-it.creds
3939
msg_ok "Set up MariaDB"
4040

41-
USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "plant-it" "MDeLuise/plant-it" "singlefile" "latest" "/opt/plant-it/backend" "server.jar"
42-
fetch_and_deploy_gh_release "plant-it-front" "MDeLuise/plant-it" "prebuild" "latest" "/opt/plant-it/frontend" "client.tar.gz"
41+
USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "plant-it" "MDeLuise/plant-it" "singlefile" "0.10.0" "/opt/plant-it/backend" "server.jar"
42+
fetch_and_deploy_gh_release "plant-it-front" "MDeLuise/plant-it" "prebuild" "0.10.0" "/opt/plant-it/frontend" "client.tar.gz"
4343

4444
msg_info "Configured Plant-it"
4545
mkdir -p /opt/plant-it-data

0 commit comments

Comments
 (0)