Skip to content

Commit dac1e7f

Browse files
committed
Update bar-assistant.sh
1 parent bcef80e commit dac1e7f

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

ct/bar-assistant.sh

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ function update_script() {
3434
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) }')
3535

3636
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE_BARASSISTANT}" != "$(cat /opt/${APP}_version.txt)" ]]; then
37-
msg_info "Stopping Service"
37+
msg_info "Stopping nginx"
3838
systemctl stop nginx
39-
msg_ok "Stopped Service"
39+
msg_ok "Stopped nginx"
4040

4141
msg_info "Updating ${APP} to v${RELEASE_BARASSISTANT}"
4242
cd /opt
@@ -59,9 +59,9 @@ function update_script() {
5959
echo "${RELEASE_BARASSISTANT}" >/opt/${APP}_version.txt
6060
msg_ok "Updated $APP to v${RELEASE_BARASSISTANT}"
6161

62-
msg_info "Starting Service"
62+
msg_info "Starting nginx"
6363
systemctl start nginx
64-
msg_ok "Started Service"
64+
msg_ok "Started nginx"
6565

6666
msg_info "Cleaning up"
6767
rm -rf /opt/barassistant.zip
@@ -72,9 +72,9 @@ function update_script() {
7272
fi
7373

7474
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"
7676
systemctl stop nginx
77-
msg_ok "Stopped Service"
77+
msg_ok "Stopped nginx"
7878

7979
msg_info "Updating Salt Rim to v${RELEASE_SALTRIM}"
8080
cd /opt
@@ -89,34 +89,35 @@ function update_script() {
8989
echo "${RELEASE_SALTRIM}" >/opt/vue-salt-rim_version.txt
9090
msg_ok "Updated $APP to v${RELEASE_SALTRIM}"
9191

92-
msg_info "Starting Service"
92+
msg_info "Starting nginx"
9393
systemctl start nginx
94-
msg_ok "Started Service"
94+
msg_ok "Started nginx"
9595

9696
msg_info "Cleaning up"
9797
rm -rf /opt/saltrim.zip
9898
rm -rf /opt/vue-salt-rim-backup
9999
msg_ok "Cleaned"
100+
msg_ok "Updated"
100101
else
101102
msg_ok "No update required. Salt Rim is already at v${RELEASE_SALTRIM}"
102103
fi
103104

104105
if [[ ! -f /opt/meilisearch_version.txt ]] || [[ "${RELEASE_MEILISEARCH}" != "$(cat /opt/meilisearch_version.txt)" ]]; then
105-
msg_info "Stopping Service"
106+
msg_info "Stopping Meilisearch"
106107
systemctl stop meilisearch
107-
msg_ok "Stopped Service"
108+
msg_ok "Stopped Meilisearch"
108109

109110
msg_info "Updating Meilisearch to ${RELEASE_MEILISEARCH}"
110111
cd /opt
111112
RELEASE=$(curl -s https://api.github.com/repos/meilisearch/meilisearch/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
112113
curl -fsSL https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb -o meilisearch.deb
113114
$STD dpkg -i meilisearch.deb
114115
echo "${RELEASE_MEILISEARCH}" >/opt/meilisearch_version.txt
115-
msg_ok "Updated Meilisearch to v${RELEASE_MEILISEARCH}"
116+
msg_ok "Updated Meilisearch to ${RELEASE_MEILISEARCH}"
116117

117-
msg_info "Starting Service"
118+
msg_info "Starting Meilisearch"
118119
systemctl start meilisearch
119-
msg_ok "Started Service"
120+
msg_ok "Started Meilisearch"
120121

121122
msg_info "Cleaning up"
122123
rm -rf "/opt/meilisearch.deb"

0 commit comments

Comments
 (0)