Browse Source

Fix error when chown a non-existent directory.

Changelog: None
Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
revert-252-rm-only-tag-2.2.x
Drew Moseley 5 years ago
parent
commit
20756210d4
  1. 2
      scripts/bootstrap-rootfs-overlay-demo-server.sh
  2. 2
      scripts/bootstrap-rootfs-overlay-hosted-server.sh
  3. 2
      scripts/bootstrap-rootfs-overlay-production-server.sh

2
scripts/bootstrap-rootfs-overlay-demo-server.sh

@ -52,7 +52,7 @@ if [ -z "${server_ip}" ]; then
exit 1
fi
sudo chown -R $(id -u).$(id -g) ${output_dir}
[ -e ${output_dir} ] && sudo chown -R $(id -u).$(id -g) ${output_dir}
mkdir -p ${output_dir}/etc/mender
cat <<- EOF > ${output_dir}/etc/mender/mender.conf
{

2
scripts/bootstrap-rootfs-overlay-hosted-server.sh

@ -53,7 +53,7 @@ if [ -z "${tenant_token}" ]; then
exit 1
fi
sudo chown -R $(id -u).$(id -g) ${output_dir}
[ -e ${output_dir} ] && sudo chown -R $(id -u).$(id -g) ${output_dir}
mkdir -p ${output_dir}/etc/mender
cat <<- EOF > ${output_dir}/etc/mender/mender.conf
{

2
scripts/bootstrap-rootfs-overlay-production-server.sh

@ -57,7 +57,7 @@ if [ -z "${server_url}" ]; then
exit 1
fi
sudo chown -R $(id -u).$(id -g) ${output_dir}
[ -e ${output_dir} ] && sudo chown -R $(id -u).$(id -g) ${output_dir}
mkdir -p ${output_dir}/etc/mender
cat <<- EOF > ${output_dir}/etc/mender/mender.conf
{

Loading…
Cancel
Save