#!/bin/bash
# TT#63466 Update files in jail (e.g. upgrade to new Debian version)

set -e

script="/usr/share/ngcp-installer/create_jail"

if [ ! -x "${script}" ]; then
  echo "ERROR: missing script or not executable '${script}'" >&2
  exit 1
fi

echo "Updating Debian files/configs in jail/chroot:"
"${script}" "update"
