File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,12 @@ function update_container() {
4141 echo -e " ${RD} [Warning]${CL} /usr/bin/update in ${BL} $container ${CL} contains a different entry (${RD} tteck${CL} ). No changes made.\n"
4242 else
4343 pct exec " $container " -- bash -c " sed -i 's/tteck\\ /Proxmox/community-scripts\\ /ProxmoxVE/g' /usr/bin/update"
44- echo -e " ${GN} [Success]${CL} /usr/bin/update updated in ${BL} $container ${CL} .\n"
44+
45+ if pct exec " $container " -- grep -q " community-scripts/ProxmoxVE" /usr/bin/update; then
46+ echo -e " ${GN} [Success]${CL} /usr/bin/update updated in ${BL} $container ${CL} .\n"
47+ else
48+ echo -e " ${RD} [Error]${CL} /usr/bin/update in ${BL} $container ${CL} could not be updated properly.\n"
49+ fi
4550 fi
4651 else
4752 echo -e " ${RD} [Error]${CL} /usr/bin/update not found in container ${BL} $container ${CL} .\n"
You can’t perform that action at this time.
0 commit comments