fix msg
This commit is contained in:
@@ -22,7 +22,7 @@ function update_container() {
|
|||||||
sleep 2
|
sleep 2
|
||||||
incus exec ${1} -- sh -c "apt autoremove -y 2>&1" | sed "s/^/$(date) - ${BGreen}${1}${Color_Off} /"
|
incus exec ${1} -- sh -c "apt autoremove -y 2>&1" | sed "s/^/$(date) - ${BGreen}${1}${Color_Off} /"
|
||||||
sleep 2
|
sleep 2
|
||||||
echo -e $(date) "- ${BGreen}Refresh snap packages${Color_Off}"
|
echo -e $(date) "- ${BGreen}Refresh snap packages for ${1} container...${Color_Off}"
|
||||||
incus exec ${1} -- bash -c "if [[ \$(which snap > /dev/null; echo \$?) == 0 ]]; then snap refresh ; fi" | sed "s/^/$(date) - ${BGreen}${1}${Color_Off} /"
|
incus exec ${1} -- bash -c "if [[ \$(which snap > /dev/null; echo \$?) == 0 ]]; then snap refresh ; fi" | sed "s/^/$(date) - ${BGreen}${1}${Color_Off} /"
|
||||||
if [ "${2}" == "STOPPED" ]; then
|
if [ "${2}" == "STOPPED" ]; then
|
||||||
stop_container ${1}
|
stop_container ${1}
|
||||||
|
|||||||
Reference in New Issue
Block a user