feat: new config file format and features
This commit is contained in:
parent
bc85a9a77a
commit
5e8a2ae862
|
|
@ -43,22 +43,16 @@ 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
|
||||||
software_install
|
|
||||||
services_restart
|
services_restart
|
||||||
custom_commands
|
|
||||||
|
software_install
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user