mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-12 02:39:17 +00:00
Compare commits
No commits in common. "4c46e9495dbf568caac5a22e9cb073c7070e7100" and "5bcbf9ba63306f8099c191675bae187fee91481c" have entirely different histories.
4c46e9495d
...
5bcbf9ba63
@ -74,7 +74,6 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
|
|||||||
unzip -q v${RELEASE}.zip
|
unzip -q v${RELEASE}.zip
|
||||||
mv homarr-${RELEASE} /opt/homarr
|
mv homarr-${RELEASE} /opt/homarr
|
||||||
mv /opt/.env /opt/homarr/.env
|
mv /opt/.env /opt/homarr/.env
|
||||||
rm -rf /opt/homarr/data
|
|
||||||
mv /opt/data /opt/homarr/
|
mv /opt/data /opt/homarr/
|
||||||
yarn install &>/dev/null
|
yarn install &>/dev/null
|
||||||
yarn build &>/dev/null
|
yarn build &>/dev/null
|
||||||
|
21
ct/medusa.sh
21
ct/medusa.sh
@ -55,23 +55,12 @@ 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}"
|
||||||
cd /opt/medusa
|
systemctl stop medusa.service
|
||||||
output=$(git pull --no-rebase)
|
/opt/medusa
|
||||||
if echo "$output" | grep -q "Already up to date."
|
git pull
|
||||||
then
|
systemctl start medusa.service
|
||||||
msg_ok "$APP is already up to date."
|
msg_ok "Successfully Updated ${APP}"
|
||||||
exit
|
|
||||||
fi
|
|
||||||
msg_ok "Updated Successfully"
|
|
||||||
|
|
||||||
msg_info "Starting ${APP}"
|
|
||||||
systemctl start medusa
|
|
||||||
msg_ok "Started ${APP}"
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ function update_script() {
|
|||||||
if [ "$UPD" == "1" ]; then
|
if [ "$UPD" == "1" ]; then
|
||||||
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
|
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
|
||||||
if [[ "$(gs --version 2>/dev/null)" != "10.04.0" ]]; then
|
if [[ "$(gs --version 2>/dev/null)" != "10.04.0" ]]; then
|
||||||
msg_info "Updating Ghostscript (Patience)"
|
msg_info "Updating Ghostscript"
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget -q https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz
|
wget -q https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz
|
||||||
tar -xzf ghostscript-10.04.0.tar.gz
|
tar -xzf ghostscript-10.04.0.tar.gz
|
||||||
|
@ -2,10 +2,8 @@
|
|||||||
|
|
||||||
# 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
|
||||||
@ -16,13 +14,12 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y curl
|
||||||
gpg \
|
$STD apt-get install -y sudo
|
||||||
curl \
|
$STD apt-get install -y mc
|
||||||
sudo \
|
$STD apt-get install -y gpg
|
||||||
mc \
|
$STD apt-get install -y git-core
|
||||||
git-core \
|
$STD apt-get install -y mediainfo
|
||||||
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…
Reference in New Issue
Block a user