forked from TheWrightServer/ProxmoxVE
[Bugfix] Medusa (#138)
This commit is contained in:
parent
2f3679a7ec
commit
ec7dd674ea
21
ct/medusa.sh
21
ct/medusa.sh
@ -55,12 +55,23 @@ function default_settings() {
|
|||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /opt/medusa ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
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}"
|
msg_info "Updating ${APP}"
|
||||||
systemctl stop medusa.service
|
cd /opt/medusa
|
||||||
/opt/medusa
|
output=$(git pull --no-rebase)
|
||||||
git pull
|
if echo "$output" | grep -q "Already up to date."
|
||||||
systemctl start medusa.service
|
then
|
||||||
msg_ok "Successfully Updated ${APP}"
|
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
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
# Copyright (c) 2021-2024 tteck
|
# Copyright (c) 2021-2024 tteck
|
||||||
# Author: tteck (tteckster)
|
# Author: tteck (tteckster)
|
||||||
|
# Co-Author: MickLesk (Canbiz)
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/pymedusa/Medusa
|
||||||
|
|
||||||
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
|
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
|
||||||
color
|
color
|
||||||
@ -14,12 +16,13 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y curl
|
$STD apt-get install -y \
|
||||||
$STD apt-get install -y sudo
|
gpg \
|
||||||
$STD apt-get install -y mc
|
curl \
|
||||||
$STD apt-get install -y gpg
|
sudo \
|
||||||
$STD apt-get install -y git-core
|
mc \
|
||||||
$STD apt-get install -y mediainfo
|
git-core \
|
||||||
|
mediainfo
|
||||||
cat <<EOF >/etc/apt/sources.list.d/non-free.list
|
cat <<EOF >/etc/apt/sources.list.d/non-free.list
|
||||||
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
|
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user