@@ -34,9 +34,9 @@ function update_script() {
34
34
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) }' )
35
35
36
36
if [[ ! -f /opt/${APP} _version.txt ]] || [[ " ${RELEASE_BARASSISTANT} " != " $( cat /opt/${APP} _version.txt) " ]]; then
37
- msg_info " Stopping Service "
37
+ msg_info " Stopping nginx "
38
38
systemctl stop nginx
39
- msg_ok " Stopped Service "
39
+ msg_ok " Stopped nginx "
40
40
41
41
msg_info " Updating ${APP} to v${RELEASE_BARASSISTANT} "
42
42
cd /opt
@@ -59,9 +59,9 @@ function update_script() {
59
59
echo " ${RELEASE_BARASSISTANT} " > /opt/${APP} _version.txt
60
60
msg_ok " Updated $APP to v${RELEASE_BARASSISTANT} "
61
61
62
- msg_info " Starting Service "
62
+ msg_info " Starting nginx "
63
63
systemctl start nginx
64
- msg_ok " Started Service "
64
+ msg_ok " Started nginx "
65
65
66
66
msg_info " Cleaning up"
67
67
rm -rf /opt/barassistant.zip
@@ -72,9 +72,9 @@ function update_script() {
72
72
fi
73
73
74
74
if [[ ! -f /opt/vue-salt-rim_version.txt ]] || [[ " ${RELEASE_SALTRIM} " != " $( cat /opt/vue-salt-rim_version.txt) " ]]; then
75
- msg_info " Stopping Service "
75
+ msg_info " Stopping nginx "
76
76
systemctl stop nginx
77
- msg_ok " Stopped Service "
77
+ msg_ok " Stopped nginx "
78
78
79
79
msg_info " Updating Salt Rim to v${RELEASE_SALTRIM} "
80
80
cd /opt
@@ -89,34 +89,35 @@ function update_script() {
89
89
echo " ${RELEASE_SALTRIM} " > /opt/vue-salt-rim_version.txt
90
90
msg_ok " Updated $APP to v${RELEASE_SALTRIM} "
91
91
92
- msg_info " Starting Service "
92
+ msg_info " Starting nginx "
93
93
systemctl start nginx
94
- msg_ok " Started Service "
94
+ msg_ok " Started nginx "
95
95
96
96
msg_info " Cleaning up"
97
97
rm -rf /opt/saltrim.zip
98
98
rm -rf /opt/vue-salt-rim-backup
99
99
msg_ok " Cleaned"
100
+ msg_ok " Updated"
100
101
else
101
102
msg_ok " No update required. Salt Rim is already at v${RELEASE_SALTRIM} "
102
103
fi
103
104
104
105
if [[ ! -f /opt/meilisearch_version.txt ]] || [[ " ${RELEASE_MEILISEARCH} " != " $( cat /opt/meilisearch_version.txt) " ]]; then
105
- msg_info " Stopping Service "
106
+ msg_info " Stopping Meilisearch "
106
107
systemctl stop meilisearch
107
- msg_ok " Stopped Service "
108
+ msg_ok " Stopped Meilisearch "
108
109
109
110
msg_info " Updating Meilisearch to ${RELEASE_MEILISEARCH} "
110
111
cd /opt
111
112
RELEASE=$( curl -s https://api.github.com/repos/meilisearch/meilisearch/releases/latest | grep " tag_name" | awk ' {print substr($2, 2, length($2)-3) }' )
112
113
curl -fsSL https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb -o meilisearch.deb
113
114
$STD dpkg -i meilisearch.deb
114
115
echo " ${RELEASE_MEILISEARCH} " > /opt/meilisearch_version.txt
115
- msg_ok " Updated Meilisearch to v ${RELEASE_MEILISEARCH} "
116
+ msg_ok " Updated Meilisearch to ${RELEASE_MEILISEARCH} "
116
117
117
- msg_info " Starting Service "
118
+ msg_info " Starting Meilisearch "
118
119
systemctl start meilisearch
119
- msg_ok " Started Service "
120
+ msg_ok " Started Meilisearch "
120
121
121
122
msg_info " Cleaning up"
122
123
rm -rf " /opt/meilisearch.deb"
0 commit comments