Skip to content

Commit

Permalink
[Bugfix] Medusa (community-scripts#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
MickLesk authored Nov 8, 2024
1 parent 2f3679a commit ec7dd67
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
21 changes: 16 additions & 5 deletions ct/medusa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,23 @@ function default_settings() {
function update_script() {
header_info
if [[ ! -d /opt/medusa ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Stopping ${APP}"
systemctl stop medusa
msg_ok "Stopped ${APP}"

msg_info "Updating ${APP}"
systemctl stop medusa.service
/opt/medusa
git pull
systemctl start medusa.service
msg_ok "Successfully Updated ${APP}"
cd /opt/medusa
output=$(git pull --no-rebase)
if echo "$output" | grep -q "Already up to date."
then
msg_ok "$APP is already up to date."
exit
fi
msg_ok "Updated Successfully"

msg_info "Starting ${APP}"
systemctl start medusa
msg_ok "Started ${APP}"
exit
}

Expand Down
15 changes: 9 additions & 6 deletions install/medusa-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

# Copyright (c) 2021-2024 tteck
# Author: tteck (tteckster)
# Co-Author: MickLesk (Canbiz)
# License: MIT
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/pymedusa/Medusa

source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
color
Expand All @@ -14,12 +16,13 @@ network_check
update_os

msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y gpg
$STD apt-get install -y git-core
$STD apt-get install -y mediainfo
$STD apt-get install -y \
gpg \
curl \
sudo \
mc \
git-core \
mediainfo
cat <<EOF >/etc/apt/sources.list.d/non-free.list
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
EOF
Expand Down

0 comments on commit ec7dd67

Please sign in to comment.