apt: also dist-upgrade etc
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 4 seconds
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 4 seconds
This commit is contained in:
parent
dc97aa89a1
commit
4a0111d54c
3 changed files with 45 additions and 10 deletions
35
src/run.sh
35
src/run.sh
|
@ -161,9 +161,15 @@ stage_end "$?";
|
|||
|
||||
###############################################################################
|
||||
|
||||
###
|
||||
|
||||
# ███████ ████████ ███████ ██████ ██████
|
||||
# ██ ██ ██ ██ ██ ██
|
||||
# ███████ ██ █████ ██████ █████
|
||||
# ██ ██ ██ ██ ██
|
||||
# ███████ ██ ███████ ██ ███████
|
||||
|
||||
# Pre-install tasks
|
||||
###
|
||||
#######################################
|
||||
|
||||
stage_begin "Executing pre-install tasks";
|
||||
while read -r preinstall_step; do
|
||||
|
@ -174,9 +180,15 @@ stage_end "$?" "1 or more pre-install tasks failed";
|
|||
|
||||
###############################################################################
|
||||
|
||||
###
|
||||
|
||||
# ███████ ████████ ███████ ██████ ██████
|
||||
# ██ ██ ██ ██ ██ ██
|
||||
# ███████ ██ █████ ██████ █████
|
||||
# ██ ██ ██ ██ ██
|
||||
# ███████ ██ ███████ ██ ██████
|
||||
|
||||
# Install packages
|
||||
###
|
||||
#######################################
|
||||
|
||||
stage_begin "Installing apt packages";
|
||||
apt-get install --no-install-recommends --yes "$(cat "${temp_dir}/apt-packages.txt")";
|
||||
|
@ -184,9 +196,15 @@ stage_end "$?" "Failed to install apt packages";
|
|||
|
||||
###############################################################################
|
||||
|
||||
###
|
||||
|
||||
# ███████ ████████ ███████ ██████ ██ ██
|
||||
# ██ ██ ██ ██ ██ ██ ██
|
||||
# ███████ ██ █████ ██████ ███████
|
||||
# ██ ██ ██ ██ ██
|
||||
# ███████ ██ ███████ ██ ██
|
||||
|
||||
# Post-install tasks
|
||||
###
|
||||
#######################################
|
||||
|
||||
stage_begin "Running post-install tasks";
|
||||
while read -r postinstall_step; do
|
||||
|
@ -217,5 +235,8 @@ echo "
|
|||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||
██████ ██████ ██ ██ ██ ███████ ███████ ██ ███████ ██
|
||||
|
||||
$(cat /etc/hostname) is now ready for use! Please reboot me to ensure everything is working as intended.
|
||||
$(cat /etc/hostname) is now ready for use! Here's a quick checklist:
|
||||
|
||||
• Ensure a static IP is configured on the router if required
|
||||
• Reboot me to ensure everything is working as intended
|
||||
" | "${rainbow}";
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
apt-get update;
|
17
src/steps-preinstall/10-apt.sh
Executable file
17
src/steps-preinstall/10-apt.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
task_begin "apt update";
|
||||
apt-get update;
|
||||
task_end "$?";
|
||||
|
||||
task_begin "apt upgrade";
|
||||
apt-get dist-upgrade -y;
|
||||
task_end "$?";
|
||||
|
||||
task_begin "apt autoremove";
|
||||
apt-get autoremove -y;
|
||||
task_end "$?";
|
||||
|
||||
task_begin "apt autoclean";
|
||||
apt-get autoclean -y;
|
||||
task_end "$?";
|
Loading…
Reference in a new issue