Update reset.sh
This commit is contained in:
parent
b460cb7448
commit
a6cecf44f9
1 changed files with 11 additions and 0 deletions
11
src/reset.sh
11
src/reset.sh
|
|
@ -191,6 +191,17 @@ addPackage() {
|
|||
return 0
|
||||
}
|
||||
|
||||
hasDisk() {
|
||||
|
||||
[ -b "/disk1" ] && return 0
|
||||
[ -b "/dev/disk1" ] && return 0
|
||||
[ -b "${DEVICE:-}" ] && return 0
|
||||
[ -s "$STORAGE/data.img" ] && return 0
|
||||
[ -s "$STORAGE/data.qcow2" ] && return 0
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
# Start webserver
|
||||
cp -r /var/www/* /run/shm
|
||||
html "Starting $APP for Docker..."
|
||||
|
|
|
|||
Loading…
Reference in a new issue