feat: run custom commands

This commit is contained in:
manuel 2025-10-26 21:01:02 +08:00
parent 2bad78fea9
commit 9fd23a6a2b

View File

@ -43,16 +43,22 @@ software_install() {
echo "Installing $COURSE software" echo "Installing $COURSE software"
apt-get update && apt-get upgrade -y apt-get update && apt-get upgrade -y
apt-get install -y $PACKAGES && apt-get clean apt-get install -y $PACKAGES && apt-get clean
} }
custom_commands() {
for((i=0; i<${#COMMANDS[@]}; i++)); do
eval ${COMMANDS[i]};
done
}
net_wait net_wait
import_config import_config
services_restart
software_install software_install
services_restart
custom_commands
exit 0 exit 0