feat: Make storage folder configurable
This commit is contained in:
parent
c244483847
commit
91be01cdf6
1 changed files with 12 additions and 12 deletions
24
src/reset.sh
24
src/reset.sh
|
@ -15,24 +15,24 @@ echo "❯ For support visit $SUPPORT"
|
||||||
|
|
||||||
# Docker environment variables
|
# Docker environment variables
|
||||||
|
|
||||||
: "${BOOT:=""}" # URL of the ISO file
|
: "${BOOT:=""}" # URL of the ISO file
|
||||||
: "${DEBUG:="N"}" # Disable debugging
|
: "${DEBUG:="N"}" # Disable debugging
|
||||||
: "${MACHINE:="virt"}" # Machine selection
|
: "${MACHINE:="virt"}" # Machine selection
|
||||||
: "${ALLOCATE:=""}" # Preallocate diskspace
|
: "${ALLOCATE:=""}" # Preallocate diskspace
|
||||||
: "${ARGUMENTS:=""}" # Extra QEMU parameters
|
: "${ARGUMENTS:=""}" # Extra QEMU parameters
|
||||||
: "${CPU_CORES:="1"}" # Amount of CPU cores
|
: "${CPU_CORES:="1"}" # Amount of CPU cores
|
||||||
: "${RAM_SIZE:="1G"}" # Maximum RAM amount
|
: "${RAM_SIZE:="1G"}" # Maximum RAM amount
|
||||||
: "${RAM_CHECK:="Y"}" # Check available RAM
|
: "${RAM_CHECK:="Y"}" # Check available RAM
|
||||||
: "${DISK_SIZE:="16G"}" # Initial data disk size
|
: "${DISK_SIZE:="16G"}" # Initial data disk size
|
||||||
: "${BOOT_MODE:=""}" # Boot system with UEFI
|
: "${BOOT_MODE:=""}" # Boot system with UEFI
|
||||||
: "${BOOT_INDEX:="9"}" # Boot index of CD drive
|
: "${BOOT_INDEX:="9"}" # Boot index of CD drive
|
||||||
|
: "${STORAGE:="/storage"}" # Storage folder location
|
||||||
|
|
||||||
# Helper variables
|
# Helper variables
|
||||||
|
|
||||||
PROCESS="${APP,,}"
|
PROCESS="${APP,,}"
|
||||||
PROCESS="${PROCESS// /-}"
|
PROCESS="${PROCESS// /-}"
|
||||||
|
|
||||||
STORAGE="/storage"
|
|
||||||
INFO="/run/shm/msg.html"
|
INFO="/run/shm/msg.html"
|
||||||
PAGE="/run/shm/index.html"
|
PAGE="/run/shm/index.html"
|
||||||
TEMPLATE="/var/www/index.html"
|
TEMPLATE="/var/www/index.html"
|
||||||
|
|
Loading…
Reference in a new issue