Add -p to mkdir to skip error if dir already exists
This commit is contained in:
parent
994bd72363
commit
31548737c6
@ -166,7 +166,7 @@ rm -f /var/lib/qubes/updates/errors
|
|||||||
echo "Using $UPDATEVM as UpdateVM to download updates for Dom0; this may take some time..." >&2
|
echo "Using $UPDATEVM as UpdateVM to download updates for Dom0; this may take some time..." >&2
|
||||||
|
|
||||||
# qvm-run by default auto-starts the VM if not running
|
# qvm-run by default auto-starts the VM if not running
|
||||||
qvm-run --nogui -q -u root $UPDATEVM 'mkdir -m 775 /var/lib/qubes/dom0-updates/' || exit 1
|
qvm-run --nogui -q -u root $UPDATEVM 'mkdir -m 775 -p /var/lib/qubes/dom0-updates/' || exit 1
|
||||||
qvm-run --nogui -q -u root $UPDATEVM 'chown user:user /var/lib/qubes/dom0-updates/' || exit 1
|
qvm-run --nogui -q -u root $UPDATEVM 'chown user:user /var/lib/qubes/dom0-updates/' || exit 1
|
||||||
qvm-run --nogui -q $UPDATEVM 'rm -rf /var/lib/qubes/dom0-updates/etc' || exit 1
|
qvm-run --nogui -q $UPDATEVM 'rm -rf /var/lib/qubes/dom0-updates/etc' || exit 1
|
||||||
tar c /var/lib/rpm /etc/yum.repos.d /etc/yum.conf 2>/dev/null | \
|
tar c /var/lib/rpm /etc/yum.repos.d /etc/yum.conf 2>/dev/null | \
|
||||||
|
Loading…
Reference in New Issue
Block a user