diff --git a/tools/miaou-create b/tools/miaou-create index c8b9076..40190e3 100755 --- a/tools/miaou-create +++ b/tools/miaou-create @@ -46,7 +46,8 @@ function after_start { if [[ -v MIAOU_BASH_DIR ]]; then pct exec "$CONTAINER_ID" -- /opt/miaou-bash/init.sh fi - pct exec "$CONTAINER_ID" -- apt-get remove -y postfix + pct exec "$CONTAINER_ID" -- apt-get purge -y postfix + pct exec "$CONTAINER_ID" -- apt-get update } function create { diff --git a/tools/miaou-push b/tools/miaou-push index bd14259..79343f0 100755 --- a/tools/miaou-push +++ b/tools/miaou-push @@ -39,6 +39,7 @@ function parse_options { } function copy { + pct exec $vmid -- mkdir -p $DESTINATION_FOLDER pct push $vmid "$SOURCE_FILE" "$DESTINATION_FOLDER/$(basename $SOURCE_FILE)" --user 0 --group 0 } diff --git a/tools/miaou-recipe b/tools/miaou-recipe index 5068915..d6223a6 100755 --- a/tools/miaou-recipe +++ b/tools/miaou-recipe @@ -47,7 +47,7 @@ function recipe { [[ ! -f $SCRIPT ]] && echo >&2 "Script not found: $SCRIPT" && exit 3 # hot changes - cat "$SCRIPT" | pct exec "$vmid" -- env FORCE="$FORCE" bash $(debug_option) + cat "$SCRIPT" | miaou-exec "$CONTAINER" -- env FORCE="$FORCE" bash $(debug_option) } @@ -55,6 +55,5 @@ function recipe { set -Eue parse_options $* -vmid=$($BASEDIR/../bin/pct-lookup "$CONTAINER") recipe echo "Recipe <$(basename "$SCRIPT")> successfully performed on container <$CONTAINER>"