Compare commits

...

4 Commits

Author SHA1 Message Date
Mellowlynx
4c46e9495d
Added "(Patience)" to the Updating Ghostscript message (#137)
The scripts needs some time to build and execute the installation.
2024-11-08 20:29:57 +01:00
CanbiZ
ec7dd674ea
[Bugfix] Medusa (#138) 2024-11-08 20:28:47 +01:00
CanbiZ
2f3679a7ec
Tweak 2024-11-08 17:44:37 +01:00
CanbiZ
37c0fe7960
quickfix homarr.sh (#133)
Missing Space
2024-11-08 16:16:21 +01:00
4 changed files with 28 additions and 13 deletions

View File

@ -74,6 +74,7 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
unzip -q v${RELEASE}.zip
mv homarr-${RELEASE} /opt/homarr
mv /opt/.env /opt/homarr/.env
rm -rf /opt/homarr/data
mv /opt/data /opt/homarr/
yarn install &>/dev/null
yarn build &>/dev/null

View File

@ -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
}

View File

@ -68,7 +68,7 @@ function update_script() {
if [ "$UPD" == "1" ]; then
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
if [[ "$(gs --version 2>/dev/null)" != "10.04.0" ]]; then
msg_info "Updating Ghostscript"
msg_info "Updating Ghostscript (Patience)"
cd /tmp
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

View File

@ -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
@ -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