Skip to content

Commit 4b5fc75

Browse files
MickLesktremor021
andauthored
Harmonize Service MSG-Blocks (#8233)
Co-authored-by: Slaviša Arežina <[email protected]>
1 parent f39b17a commit 4b5fc75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+173
-172
lines changed

ct/actualbudget.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ function update_script() {
3232
RELEASE=$(curl -fsSL https://api.github.com/repos/actualbudget/actual/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
3333
if [[ -f /opt/actualbudget-data/config.json ]]; then
3434
if [[ ! -f /opt/actualbudget_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/actualbudget_version.txt)" ]]; then
35-
msg_info "Stopping ${APP}"
35+
msg_info "Stopping Service"
3636
systemctl stop actualbudget
37-
msg_ok "${APP} Stopped"
37+
msg_ok "Stopped Service"
3838

3939
msg_info "Updating ${APP} to ${RELEASE}"
4040
$STD npm update -g @actual-app/sync-server
4141
echo "${RELEASE}" >/opt/actualbudget_version.txt
4242
msg_ok "Updated ${APP} to ${RELEASE}"
4343

44-
msg_info "Starting ${APP}"
44+
msg_info "Starting Service"
4545
systemctl start actualbudget
46-
msg_ok "Restarted ${APP}"
46+
msg_ok "Started Service"
4747
else
4848
msg_info "${APP} is already up to date"
4949
fi

ct/alpine-redlib.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@ function update_script() {
2424
check_container_resources
2525

2626
if [[ ! -d /opt/redlib ]]; then
27-
msg_error "No ${APP} Installation Found!"
28-
exit
27+
msg_error "No ${APP} Installation Found!"
28+
exit
2929
fi
3030

3131
msg_info "Updating Alpine Packages"
3232
$STD apk -U upgrade
3333
msg_ok "Updated Alpine Packages"
3434

35-
msg_info "Stopping ${APP} Service"
35+
msg_info "Stopping Service"
3636
$STD rc-service redlib stop
37-
msg_ok "Stopped ${APP} Service"
37+
msg_ok "Stopped Service"
3838

3939
fetch_and_deploy_gh_release "redlib" "redlib-org/redlib" "prebuild" "latest" "/opt/redlib" "redlib-x86_64-unknown-linux-musl.tar.gz"
4040

41-
msg_info "Starting ${APP} Service"
41+
msg_info "Starting Service"
4242
$STD rc-service redlib start
43-
msg_ok "Started ${APP} Service"
43+
msg_ok "Started Service"
4444

4545
msg_ok "Update Successful"
4646
exit

ct/apache-tika.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ function update_script() {
2929
fi
3030
RELEASE="$(curl -fsSL https://dlcdn.apache.org/tika/ | grep -oP '(?<=href=")[0-9]+\.[0-9]+\.[0-9]+(?=/")' | sort -V | tail -n1)"
3131
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
32-
msg_info "Stopping ${APP}"
32+
msg_info "Stopping Service"
3333
systemctl stop apache-tika
34-
msg_ok "Stopped ${APP}"
34+
msg_ok "Stopped Service"
3535

3636
msg_info "Updating ${APP} to v${RELEASE}"
3737
cd /opt/apache-tika
@@ -41,9 +41,9 @@ function update_script() {
4141
echo "${RELEASE}" >/opt/${APP}_version.txt
4242
msg_ok "Updated ${APP} to v${RELEASE}"
4343

44-
msg_info "Starting ${APP}"
44+
msg_info "Starting Service"
4545
systemctl start apache-tika
46-
msg_ok "Started ${APP}"
46+
msg_ok "Started Service"
4747
msg_info "Cleaning Up"
4848
rm -rf /opt/apache-tika/tika-server-standard-prev-version.jar
4949
msg_ok "Cleanup Completed"
@@ -61,4 +61,4 @@ description
6161
msg_ok "Completed Successfully!\n"
6262
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
6363
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
64-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9998${CL}"
64+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9998${CL}"

ct/autobrr.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ function update_script() {
2929
fi
3030

3131
if check_for_gh_release "autobrr" "autobrr/autobrr"; then
32-
msg_info "Stopping ${APP} LXC"
32+
msg_info "Stopping Service"
3333
systemctl stop autobrr
34-
msg_ok "Stopped ${APP} LXC"
34+
msg_ok "Stopped Service"
3535

3636
fetch_and_deploy_gh_release "autobrr" "autobrr/autobrr" "prebuild" "latest" "/usr/local/bin" "autobrr_*_linux_x86_64.tar.gz"
3737

38-
msg_info "Starting ${APP} LXC"
38+
msg_info "Starting Service"
3939
systemctl start autobrr
40-
msg_ok "Started ${APP} LXC"
40+
msg_ok "Started Service"
4141
msg_ok "Updated Successfully"
4242
fi
4343
exit

ct/backrest.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ function update_script() {
2929
fi
3030
RELEASE=$(curl -fsSL https://api.github.com/repos/garethgeorge/backrest/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
3131
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
32-
msg_info "Stopping ${APP}"
32+
msg_info "Stopping Service"
3333
systemctl stop backrest
34-
msg_ok "Stopped ${APP}"
34+
msg_ok "Stopped Service"
3535

3636
msg_info "Updating ${APP} to ${RELEASE}"
3737
temp_file=$(mktemp)
@@ -42,9 +42,9 @@ function update_script() {
4242
echo "${RELEASE}" >/opt/${APP}_version.txt
4343
msg_ok "Updated ${APP} to ${RELEASE}"
4444

45-
msg_info "Starting ${APP}"
45+
msg_info "Starting Service"
4646
systemctl start backrest
47-
msg_ok "Started ${APP}"
47+
msg_ok "Started Service"
4848

4949
msg_info "Cleaning up"
5050
rm -f "$temp_file"

ct/calibre-web.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30-
msg_info "Stopping ${APP}"
30+
msg_info "Stopping Service"
3131
systemctl stop cps
32-
msg_ok "Stopped ${APP}"
32+
msg_ok "Stopped Service"
3333

3434
msg_info "Updating ${APP}"
3535
cd /opt/kepubify
@@ -121,9 +121,9 @@ function update_script() {
121121
$STD pip install --upgrade calibreweb
122122
fi
123123

124-
msg_info "Starting ${APP}"
124+
msg_info "Starting Service"
125125
systemctl start cps
126-
msg_ok "Started ${APP}"
126+
msg_ok "Started Service"
127127
msg_ok "Updated Successfully"
128128
exit
129129
}
@@ -135,4 +135,4 @@ description
135135
msg_ok "Completed Successfully!\n"
136136
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
137137
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
138-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8083${CL}"
138+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8083${CL}"

ct/cleanuparr.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ function update_script() {
2828
exit
2929
fi
3030
if check_for_gh_release "cleanuparr" "Cleanuparr/Cleanuparr"; then
31-
msg_info "Stopping ${APP}"
31+
msg_info "Stopping Service"
3232
systemctl stop cleanuparr
33-
msg_ok "Stopped ${APP}"
33+
msg_ok "Stopped Service"
3434

3535
fetch_and_deploy_gh_release "Cleanuparr" "Cleanuparr/Cleanuparr" "prebuild" "latest" "/opt/cleanuparr" "*linux-amd64.zip"
3636

37-
msg_info "Starting ${APP}"
37+
msg_info "Starting Service"
3838
systemctl start cleanuparr
39-
msg_ok "Started ${APP}"
39+
msg_ok "Started Service"
4040
msg_ok "Updated Successfully"
4141
fi
4242
exit

ct/commafeed.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ function update_script() {
2929
exit
3030
fi
3131
if check_for_gh_release "commafeed" "Athou/commafeed"; then
32-
msg_info "Stopping ${APP}"
32+
msg_info "Stopping Service"
3333
systemctl stop commafeed
34-
msg_ok "Stopped ${APP}"
34+
msg_ok "Stopped Service"
3535

3636
if ! [[ $(dpkg -s rsync 2>/dev/null) ]]; then
3737
msg_info "Installing Dependencies"
@@ -54,9 +54,9 @@ function update_script() {
5454
msg_ok "Restored data"
5555
fi
5656

57-
msg_info "Starting ${APP}"
57+
msg_info "Starting Service"
5858
systemctl start commafeed
59-
msg_ok "Started ${APP}"
59+
msg_ok "Started Service"
6060
msg_ok "Updated Successfully"
6161
fi
6262
exit

ct/dashy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ function update_script() {
2828
exit
2929
fi
3030
if check_for_gh_release "dashy" "Lissy93/dashy"; then
31-
msg_info "Stopping ${APP}"
31+
msg_info "Stopping Service"
3232
systemctl stop dashy
33-
msg_ok "Stopped ${APP}"
33+
msg_ok "Stopped Service"
3434

3535
msg_info "Backing up conf.yml"
3636
cd ~

ct/docmost.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ function update_script() {
3232
export NODE_OPTIONS="--max_old_space_size=4096"
3333

3434
if check_for_gh_release "docmost" "docmost/docmost"; then
35-
msg_info "Stopping ${APP}"
35+
msg_info "Stopping Service"
3636
systemctl stop docmost
37-
msg_ok "${APP} Stopped"
37+
msg_ok "Stopped Service"
3838

3939
msg_info "Backing up data"
4040
cp /opt/docmost/.env /opt/
@@ -52,9 +52,9 @@ function update_script() {
5252
$STD pnpm build
5353
msg_ok "Updated ${APP}"
5454

55-
msg_info "Starting ${APP}"
55+
msg_info "Starting Service"
5656
systemctl start docmost
57-
msg_ok "Started ${APP}"
57+
msg_ok "Started Service"
5858
msg_ok "Updated Successfully"
5959
fi
6060
exit

0 commit comments

Comments
 (0)