mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-25 18:16:17 +00:00
Update update-repo.sh
This commit is contained in:
parent
90c5f1c2eb
commit
56334616dc
@ -35,12 +35,11 @@ function update_container() {
|
|||||||
echo -e "${BL}[Info]${GN} Checking /usr/bin/update in ${BL}$container${CL} (OS: ${GN}$os${CL})"
|
echo -e "${BL}[Info]${GN} Checking /usr/bin/update in ${BL}$container${CL} (OS: ${GN}$os${CL})"
|
||||||
|
|
||||||
if pct exec "$container" -- [ -e /usr/bin/update ]; then
|
if pct exec "$container" -- [ -e /usr/bin/update ]; then
|
||||||
pct exec "$container" -- bash -c "sed -i 's/tteck\\/Proxmox/community-scripts\\/ProxmoxVE/g' /usr/bin/update"
|
|
||||||
|
|
||||||
if pct exec "$container" -- grep -q "community-scripts/ProxmoxVE" /usr/bin/update; then
|
if pct exec "$container" -- grep -q "community-scripts/ProxmoxVE" /usr/bin/update; then
|
||||||
echo -e "${GN}[Success]${CL} /usr/bin/update updated in ${BL}$container${CL}.\n"
|
echo -e "${RD}[No Change]${CL} /usr/bin/update is already up to date in ${BL}$container${CL}.\n"
|
||||||
else
|
else
|
||||||
echo -e "${RD}[No Change]${CL} No updates made to /usr/bin/update in ${BL}$container${CL}.\n"
|
pct exec "$container" -- bash -c "sed -i 's/tteck\\/Proxmox/community-scripts\\/ProxmoxVE/g' /usr/bin/update"
|
||||||
|
echo -e "${GN}[Success]${CL} /usr/bin/update updated in ${BL}$container${CL}.\n"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e "${RD}[Error]${CL} /usr/bin/update not found in container ${BL}$container${CL}.\n"
|
echo -e "${RD}[Error]${CL} /usr/bin/update not found in container ${BL}$container${CL}.\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user