UNRAID runs in RAM, so every time the system reboots, the .bash_profile is reset to the default, thus losing any customizations. To address this, UNRAID created a process that allows you to store customization on the boot drive allowing the .bash_profile to be rebuilt with every reboot.
The /boot/config/go file in Unraid is a startup script executed during the boot process. It is located in the /boot/config/ directory on the Unraid USB flash drive. This file is used to define custom commands or configurations that need to run when the system starts.
/boot/config/go
#!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp echo export HISTCONTROL=ignoreboth:erasedups >> /root/.bash_profile cat /boot/config/alias_docker_compose.cfg >> /root/.bash_profile cat /boot/config/plugins/user.scripts/scripts/arraystart-link-scripts/script >> /root/.bash_profile
The following are the referenced files:
/boot/config/alias_docker_compose.cfg
alias docker-compose='docker run --rm \ -v /var/run/docker.sock:/var/run/docker.sock \ -v "$PWD:$PWD" \ -w="$PWD" \ docker/compose:latest'/boot/config/plugins/user.scripts/scripts/arraystart-link-scripts/script
#!/bin/bash if [[ ! -L /root/scripts ]]; then logger -t gofile "Link scripts to root" ln -v -s /mnt/user/WORK/myUNRAID/scripts /root/scripts echo "scripts link created" else echo "scripts link already exists!"
