mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-18 16:32:17 +00:00
Refactor (#10304)
This commit is contained in:
@@ -27,10 +27,10 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
msg_info "Updating $APP"
|
msg_info "Updating Notifiarr"
|
||||||
$STD apt update
|
$STD apt update
|
||||||
$STD apt -y upgrade
|
$STD apt upgrade -y
|
||||||
msg_ok "Updated $APP"
|
msg_ok "Updated Notifiarr"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,20 +13,16 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Notifiarr"
|
msg_info "Setting up Notifiarr"
|
||||||
$STD groupadd notifiarr
|
$STD groupadd notifiarr
|
||||||
$STD useradd -g notifiarr notifiarr
|
$STD useradd -g notifiarr notifiarr
|
||||||
curl -fsSL "https://packagecloud.io/golift/pkgs/gpgkey" | gpg --dearmor >/usr/share/keyrings/golift-archive-keyring.gpg
|
setup_deb822_repo \
|
||||||
cat <<EOF >/etc/apt/sources.list.d/golift.sources
|
"notifiarr" \
|
||||||
Types: deb
|
"https://packagecloud.io/golift/pkgs/gpgkey" \
|
||||||
URIs: https://packagecloud.io/golift/pkgs/ubuntu
|
"https://packagecloud.io/golift/pkgs/ubuntu" \
|
||||||
Suites: focal
|
"focal"
|
||||||
Components: main
|
|
||||||
Signed-By: /usr/share/keyrings/golift-archive-keyring.gpg
|
|
||||||
EOF
|
|
||||||
$STD apt update
|
|
||||||
$STD apt install -y notifiarr
|
$STD apt install -y notifiarr
|
||||||
msg_ok "Installed Notifiarr"
|
msg_ok "Setup Notifiarr"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|||||||
Reference in New Issue
Block a user