From 9f459f98868ee7a6c7643acf06ba933fcd93ad5d Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 21 Apr 2023 21:40:05 +0200 Subject: [PATCH 1/5] Checksum --- run/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run/install.sh b/run/install.sh index 469c8d9..22ffa9f 100644 --- a/run/install.sh +++ b/run/install.sh @@ -35,7 +35,7 @@ LOC="$DL/release/7.0.1/42218/DSM_VirtualDSM_42218.pat" SUM=$(md5sum "$RD" | cut -f 1 -d " ") if [ "$SUM" != "14fb88cb7cabddb5af1d0269bf032845" ]; then - echo "Invalid extractor, checksum failed." && exit 61 + echo "Invalid extractor, checksum mismatch." && exit 61 fi set +e From 04820ec9f93310b607c8115f8b0dd3fc24aecb83 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 21 Apr 2023 21:57:05 +0200 Subject: [PATCH 2/5] Refresh installation page --- run/install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/run/install.sh b/run/install.sh index 22ffa9f..94162b9 100644 --- a/run/install.sh +++ b/run/install.sh @@ -2,7 +2,13 @@ set -eu # Display wait message on port 5000 -/run/server.sh 5000 "Please wait while Virtual DSM is installing..." > /dev/null & + +HTML="Please wait while Virtual DSM is installing..." + +/run/server.sh 5000 "${HTML}" > /dev/null & + +# Download the required files from the Synology website DL="https://global.synologydownload.com/download/DSM" @@ -139,8 +145,6 @@ if [[ SIZE -ne SYSTEM_SIZE ]]; then echo "ERROR: System disk has the wrong size: ${SIZE}" && exit 90 fi -echo "Install: Creating partition table..." - PART="$TMP/partition.fdisk" { echo "label: dos" From 8d22684894f95bacd8bc31432d2dd0381f35163b Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 21 Apr 2023 21:58:16 +0200 Subject: [PATCH 3/5] Display port number --- run/check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run/check.sh b/run/check.sh index 70d0c9e..6179b26 100644 --- a/run/check.sh +++ b/run/check.sh @@ -14,7 +14,7 @@ fi IP=$(cat "${FILE}") if ! curl -m 3 -ILfSs "http://${IP}:${PORT}/" > /dev/null; then - echo "Failed to reach ${IP}" + echo "Failed to reach ${IP}:${PORT}" exit 1 fi From 18fa0619ca685627d89125dabc5ed6c563f1c1a6 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 21 Apr 2023 22:01:59 +0200 Subject: [PATCH 4/5] Comment --- run/power.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run/power.sh b/run/power.sh index abcb528..5c6eadf 100644 --- a/run/power.sh +++ b/run/power.sh @@ -54,7 +54,7 @@ _graceful_shutdown() { else echo - echo "Please update the VirtualDSM Agent to allow gracefull shutdowns..." + echo "Please update the VirtualDSM Agent to allow for gracefull shutdowns..." PID=$(cat "${_QEMU_PID}") kill -15 "${PID}" From 8aeac8fe2c17d5396a7bcbba598bb3bd8be5e265 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 21 Apr 2023 22:02:53 +0200 Subject: [PATCH 5/5] Comment --- run/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run/run.sh b/run/run.sh index 739cad6..8cc935f 100755 --- a/run/run.sh +++ b/run/run.sh @@ -3,7 +3,7 @@ set -eu # Docker environment variabeles -: ${URL:=''}. # URL of PAT file +: ${URL:=''}. # URL of the PAT file : ${DEBUG:=''}. # Enable debug mode : ${ALLOCATE:='Y'} # Preallocate diskspace : ${CPU_CORES:='1'} # Amount of CPU cores