mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-11 18:29:17 +00:00
Compare commits
2 Commits
0f493c1d19
...
f37a95db4f
Author | SHA1 | Date | |
---|---|---|---|
|
f37a95db4f | ||
|
93fdd2e9d4 |
@ -37,7 +37,7 @@ function update_container() {
|
|||||||
if pct exec "$container" -- [ -e /usr/bin/update ]; then
|
if pct exec "$container" -- [ -e /usr/bin/update ]; then
|
||||||
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 "${RD}[No Change]${CL} /usr/bin/update is already up to date in ${BL}$container${CL}.\n"
|
echo -e "${RD}[No Change]${CL} /usr/bin/update is already up to date in ${BL}$container${CL}.\n"
|
||||||
elif pct exec "$container" -- grep -q "tteck" /usr/bin/update; then
|
elif pct exec "$container" -- grep -q -v "tteck" /usr/bin/update; then
|
||||||
echo -e "${RD}[Warning]${CL} /usr/bin/update in ${BL}$container${CL} contains a different entry (${RD}tteck${CL}). No changes made.\n"
|
echo -e "${RD}[Warning]${CL} /usr/bin/update in ${BL}$container${CL} contains a different entry (${RD}tteck${CL}). No changes made.\n"
|
||||||
else
|
else
|
||||||
pct exec "$container" -- bash -c "sed -i 's/tteck\\/Proxmox/community-scripts\\/ProxmoxVE/g' /usr/bin/update"
|
pct exec "$container" -- bash -c "sed -i 's/tteck\\/Proxmox/community-scripts\\/ProxmoxVE/g' /usr/bin/update"
|
||||||
|
Loading…
Reference in New Issue
Block a user