mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-21 16:04:57 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76e358ccc5 | ||
|
|
15859cc9f6 |
@@ -22,12 +22,12 @@ catch_errors
|
|||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /opt/mylar3 ]]; then
|
if [[ ! -d /opt/mylar3 ]]; then
|
||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No Mylar3 Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if check_for_gh_release "mylar3" "mylar3/mylar3"; then
|
if check_for_gh_release "mylar3" "MylarComics/mylar3"; then
|
||||||
fetch_and_deploy_gh_release "mylar3" "mylar3/mylar3" "tarball"
|
fetch_and_deploy_gh_release "mylar3" "MylarComics/mylar3" "tarball"
|
||||||
systemctl restart mylar3
|
systemctl restart mylar3
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -24,16 +24,16 @@ $STD apt update
|
|||||||
$STD apt install -y unrar
|
$STD apt install -y unrar
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
PYTHON_VERSION="3.12" setup_uv
|
PYTHON_VERSION="3.11" setup_uv
|
||||||
fetch_and_deploy_gh_release "mylar3" "mylar3/mylar3" "tarball"
|
fetch_and_deploy_gh_release "mylar3" "MylarComics/mylar3" "tarball"
|
||||||
|
|
||||||
msg_info "Installing ${APPLICATION}"
|
msg_info "Installing Mylar3"
|
||||||
mkdir -p /opt/mylar3-data
|
mkdir -p /opt/mylar3-data
|
||||||
$STD uv venv --clear /opt/mylar3/.venv
|
$STD uv venv --clear /opt/mylar3/.venv
|
||||||
$STD /opt/mylar3/.venv/bin/python -m ensurepip --upgrade
|
$STD /opt/mylar3/.venv/bin/python -m ensurepip --upgrade
|
||||||
$STD /opt/mylar3/.venv/bin/python -m pip install --upgrade pip
|
$STD /opt/mylar3/.venv/bin/python -m pip install --upgrade pip
|
||||||
$STD /opt/mylar3/.venv/bin/python -m pip install --no-cache-dir -r /opt/mylar3/requirements.txt
|
$STD /opt/mylar3/.venv/bin/python -m pip install --no-cache-dir -r /opt/mylar3/requirements.txt
|
||||||
msg_ok "Installed ${APPLICATION}"
|
msg_ok "Installed Mylar3"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/systemd/system/mylar3.service
|
cat <<EOF >/etc/systemd/system/mylar3.service
|
||||||
|
|||||||
Reference in New Issue
Block a user