Make backup directory in container cache
The /var/backup is created in all containers, so it should be created in the container cache. This also ensures that the bind mount to this directory can be done when the container is first created. Change-Id: I0e2922b31fe301002837e82970814fe8cbe6088a
This commit is contained in:
parent
4c0c29037d
commit
6cbe56a090
@ -53,6 +53,7 @@ lxc_cache_map:
|
||||
/usr/bin/wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -O /tmp/epel-release-latest-7.noarch.rpm
|
||||
/usr/bin/rpm -ivh /tmp/epel-release-latest-7.noarch.rpm || true
|
||||
yum clean all
|
||||
mkdir -p /var/backup
|
||||
|
||||
lxc_cache_packages:
|
||||
- ca-certificates
|
||||
|
@ -60,6 +60,7 @@ lxc_cache_map:
|
||||
chmod 700 /root/.ssh
|
||||
userdel --force --remove ubuntu || true
|
||||
apt-get clean
|
||||
mkdir -p /var/backup
|
||||
|
||||
# This forces any modified configurations to remain, and any unmodified configs to be replaced
|
||||
# ref: http://serverfault.com/questions/259226/automatically-keep-current-version-of-config-files-when-apt-get-install
|
||||
|
@ -64,6 +64,7 @@ lxc_cache_map:
|
||||
chmod 700 /root/.ssh
|
||||
userdel --force --remove ubuntu || true
|
||||
apt-get clean
|
||||
mkdir -p /var/backup
|
||||
|
||||
# This forces any modified configurations to remain, and any unmodified configs to be replaced
|
||||
# ref: http://serverfault.com/questions/259226/automatically-keep-current-version-of-config-files-when-apt-get-install
|
||||
|
Loading…
Reference in New Issue
Block a user