configure.sh wizard, install improvements, encryption fixes, branch support #19
@@ -16,7 +16,9 @@ export UPGRADEBRANCH="main"
|
|||||||
export CLIENTADMINGROUP="clientadmins"
|
export CLIENTADMINGROUP="clientadmins"
|
||||||
|
|
||||||
# Method to determine Unique Hostname / FQDN of the Client. May be replaced by your needs
|
# Method to determine Unique Hostname / FQDN of the Client. May be replaced by your needs
|
||||||
if [ "$EUID" -eq 0 ]; then
|
if [ -r /opt/sys_config/config.d/machine_uuid.sys ]; then
|
||||||
|
export HOSTNM="pc-$( cat /opt/sys_config/config.d/machine_uuid.sys )"
|
||||||
|
elif [ "$EUID" -eq 0 ]; then
|
||||||
export HOSTNM="pc-$( dmidecode -t system | grep -i 'UUID' | sed 's/UUID: //' | tr '[:upper:]' '[:lower:]' | sed 's/[^0-9a-z]*//g' | xargs|tail -c 13)"
|
export HOSTNM="pc-$( dmidecode -t system | grep -i 'UUID' | sed 's/UUID: //' | tr '[:upper:]' '[:lower:]' | sed 's/[^0-9a-z]*//g' | xargs|tail -c 13)"
|
||||||
else
|
else
|
||||||
export HOSTNM=$( hostname -s )
|
export HOSTNM=$( hostname -s )
|
||||||
|
|||||||
@@ -497,6 +497,15 @@ mount -o "$MOUNT_OPTS" "$OEMDRV_DEV" "$MOUNT_POINT" || die "mount failed."
|
|||||||
info "Cloning $REPO_URL into $MOUNT_POINT..."
|
info "Cloning $REPO_URL into $MOUNT_POINT..."
|
||||||
cd "$MOUNT_POINT" || die "Cannot cd to $MOUNT_POINT."
|
cd "$MOUNT_POINT" || die "Cannot cd to $MOUNT_POINT."
|
||||||
git clone --progress --depth 1 "$REPO_URL" . || die "git clone failed."
|
git clone --progress --depth 1 "$REPO_URL" . || die "git clone failed."
|
||||||
|
|
||||||
|
# Write hardware UUID to a user-readable per-machine file
|
||||||
|
mkdir -p "${MOUNT_POINT}/config.d"
|
||||||
|
dmidecode -t system | grep -i 'UUID' \
|
||||||
|
| sed 's/UUID: //' | tr '[:upper:]' '[:lower:]' \
|
||||||
|
| sed 's/[^0-9a-z]*//g' | xargs | tail -c 13 \
|
||||||
|
> "${MOUNT_POINT}/config.d/machine_uuid.sys"
|
||||||
|
chmod 0444 "${MOUNT_POINT}/config.d/machine_uuid.sys"
|
||||||
|
|
||||||
chmod o=rwX . -R # to make changes to the configuration possible after install
|
chmod o=rwX . -R # to make changes to the configuration possible after install
|
||||||
|
|
||||||
# ── Done ──────────────────────────────────────────────────────────────────────
|
# ── Done ──────────────────────────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user