Fixed dashes error.
This commit is contained in:
@@ -109,7 +109,7 @@ hardware_detection() {
|
||||
TARGET_GRAPHICS="false"
|
||||
fi
|
||||
echo -e "\n\n 🔎 Detecting transconding acceleration on target host..."
|
||||
if ssh_to_host "ls /dev/dri/renderD128" 2>/dev/null; then
|
||||
if ssh_to_host "ls /dev/dri/renderD300" 2>/dev/null; then
|
||||
echo -e " ✅ Transcoding capable card detected."
|
||||
TARGET_GRAPHICS_RENDERER="true"
|
||||
else
|
||||
@@ -174,21 +174,21 @@ files_generation() {
|
||||
envsubst < config-files/sops-nix/.sops.yaml > extra-files/etc/nixos/.sops.yaml
|
||||
|
||||
echo -e "\n\n ✅ Generating secure random database passwords..."
|
||||
HOME_ASSISTANT_MQTT_USER="$(openssl rand -base64 29 | tr -d "123456789=+/" | cut -c1-10)"
|
||||
HOME_ASSISTANT_MQTT_PASSWORD="$(openssl rand -base64 29 | tr -d "=+/" | cut -c1-64)"
|
||||
PASSBOLT_MYSQL_DATABASE="$(openssl rand -base64 29 | tr -d "123456789=+/" | cut -c1-10)"
|
||||
PASSBOLT_MYSQL_USER="$(openssl rand -base64 29 | tr -d "123456789=+/" | cut -c1-10)"
|
||||
PASSBOLT_MYSQL_PASSWORD="$(openssl rand -base64 29 | tr -d "=+/" | cut -c1-64)"
|
||||
FTLCONF_WEBSERVER_PASSWORD="$(openssl rand -base64 29 | tr -d "=+/" | cut -c1-64)"
|
||||
DATA-DISK-1="$(openssl rand -base64 128 | tr -d "=+/" | cut -c1-128)"
|
||||
DATA-DISK-2="$(openssl rand -base64 128 | tr -d "=+/" | cut -c1-128)"
|
||||
DATA-DISK-3="$(openssl rand -base64 128 | tr -d "=+/" | cut -c1-128)"
|
||||
DATA-DISK-4="$(openssl rand -base64 128 | tr -d "=+/" | cut -c1-128)"
|
||||
DATA-DISK-5="$(openssl rand -base64 128 | tr -d "=+/" | cut -c1-128)"
|
||||
DATA-DISK-6="$(openssl rand -base64 128 | tr -d "=+/" | cut -c1-128)"
|
||||
PARITY-DISK-1="$(openssl rand -base64 128 | tr -d "=+/" | cut -c1-128)"
|
||||
PARITY-DISK-2="$(openssl rand -base64 128 | tr -d "=+/" | cut -c1-128)"
|
||||
PARITY-DISK-3="$(openssl rand -base64 128 | tr -d "=+/" | cut -c1-128)"
|
||||
HOME_ASSISTANT_MQTT_USER=$(openssl rand -base64 29 | tr -d "\123456789=+/" | cut -c1-10)
|
||||
HOME_ASSISTANT_MQTT_PASSWORD=$(openssl rand -base64 29 | tr -d "\=+/" | cut -c1-64)
|
||||
PASSBOLT_MYSQL_DATABASE=$(openssl rand -base64 29 | tr -d "\123456789=+/" | cut -c1-10)
|
||||
PASSBOLT_MYSQL_USER=$(openssl rand -base64 29 | tr -d "\123456789=+/" | cut -c1-10)
|
||||
PASSBOLT_MYSQL_PASSWORD=$(openssl rand -base64 29 | tr -d "\=+/" | cut -c1-64)
|
||||
FTLCONF_WEBSERVER_PASSWORD=$(openssl rand -base64 29 | tr -d "\=+/" | cut -c1-64)
|
||||
DATA_DISK_1=$(openssl rand -base64 300 | tr -d "\=+/" | cut -c1-300)
|
||||
DATA_DISK_2=$(openssl rand -base64 300 | tr -d "\=+/" | cut -c1-300)
|
||||
DATA_DISK_3=$(openssl rand -base64 300 | tr -d "\=+/" | cut -c1-300)
|
||||
DATA_DISK_4=$(openssl rand -base64 300 | tr -d "\=+/" | cut -c1-300)
|
||||
DATA_DISK_5=$(openssl rand -base64 300 | tr -d "\=+/" | cut -c1-300)
|
||||
DATA_DISK_6=$(openssl rand -base64 300 | tr -d "\=+/" | cut -c1-300)
|
||||
PARITY_DISK_1=$(openssl rand -base64 300 | tr -d "\=+/" | cut -c1-300)
|
||||
PARITY_DISK_2=$(openssl rand -base64 300 | tr -d "\=+/" | cut -c1-300)
|
||||
PARITY_DISK_3=$(openssl rand -base64 300 | tr -d "\=+/" | cut -c1-300)
|
||||
|
||||
echo -e "\n\n ✅ Encrypting secrets in the correct file..."
|
||||
envsubst < "config-files/sops-nix/secrets.yaml" | sops encrypt --filename-override secrets.yaml \
|
||||
@@ -203,7 +203,7 @@ files_generation() {
|
||||
echo -e "\n\n ✅ Adapting the docker configuration to your hardware..."
|
||||
DEVICES_BLOCK=""
|
||||
if [[ "$TARGET_GRAPHICS_RENDERER" == "true" ]]; then
|
||||
DEVICES_BLOCK+=" - /dev/dri/renderD128:/dev/dri/renderD128\n"
|
||||
DEVICES_BLOCK+=" - /dev/dri/renderD300:/dev/dri/renderD300\n"
|
||||
fi
|
||||
if [[ "$TARGET_USB_CORAL" == "true" ]]; then
|
||||
DEVICES_BLOCK+=" - /dev/bus/usb:/dev/bus/usb\n"
|
||||
|
||||
Reference in New Issue
Block a user