mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
fix: Cleanup dirs
This commit is contained in:
parent
3bf4cc861b
commit
04aa20e836
11
src/reset.sh
11
src/reset.sh
@ -25,15 +25,20 @@ MINOR=$(uname -r | cut -d '.' -f2)
|
|||||||
ARCH=$(dpkg --print-architecture)
|
ARCH=$(dpkg --print-architecture)
|
||||||
VERS=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1)
|
VERS=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1)
|
||||||
|
|
||||||
|
# Check folder
|
||||||
|
|
||||||
|
STORAGE="/storage"
|
||||||
|
[ ! -d "$STORAGE" ] && error "Storage folder (${STORAGE}) not found!" && exit 13
|
||||||
|
|
||||||
# Cleanup files
|
# Cleanup files
|
||||||
|
|
||||||
rm -f /run/dsm.url
|
rm -f /run/dsm.url
|
||||||
rm -f /run/qemu.pid
|
rm -f /run/qemu.pid
|
||||||
rm -f /run/qemu.count
|
rm -f /run/qemu.count
|
||||||
|
|
||||||
# Check folder
|
# Cleanup dirs
|
||||||
|
|
||||||
STORAGE="/storage"
|
rm -rf /tmp/dsm
|
||||||
[ ! -d "$STORAGE" ] && error "Storage folder (${STORAGE}) not found!" && exit 13
|
rm -rf "$STORAGE/tmp"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user