Update update-apps.sh
This commit is contained in:
parent
e94f2bf68e
commit
3c8184221a
@ -213,7 +213,6 @@ for container in $CHOICE; do
|
|||||||
if [ "$UPDATE_BUILD_RESOURCES" -eq "1" ]; then
|
if [ "$UPDATE_BUILD_RESOURCES" -eq "1" ]; then
|
||||||
pct set "$container" --cores "$build_cpu" --memory "$build_ram"
|
pct set "$container" --cores "$build_cpu" --memory "$build_ram"
|
||||||
fi
|
fi
|
||||||
}
|
|
||||||
|
|
||||||
#4) Update service, using the update command
|
#4) Update service, using the update command
|
||||||
case "$os" in
|
case "$os" in
|
||||||
@ -243,7 +242,7 @@ for container in $CHOICE; do
|
|||||||
|
|
||||||
if [ $exit_code -eq 0 ]; then
|
if [ $exit_code -eq 0 ]; then
|
||||||
msg_ok "Updated container $container"
|
msg_ok "Updated container $container"
|
||||||
elif [ "BACKUP_CHOICE" == "yes" ];then
|
elif [ "$BACKUP_CHOICE" == "yes" ]; then
|
||||||
msg_info "Restoring LXC from backup"
|
msg_info "Restoring LXC from backup"
|
||||||
pct stop $container
|
pct stop $container
|
||||||
LXC_STORAGE=$(pct config $container | awk -F '[:,]' '/rootfs/ {print $2}')
|
LXC_STORAGE=$(pct config $container | awk -F '[:,]' '/rootfs/ {print $2}')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user