Skip to content

Commit

Permalink
removed user-commands-before.bash, changed user_commands.bash
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-192 committed Jan 16, 2024
1 parent 1be00ff commit 2e38348
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,32 @@
# /home/$username
#
#----------------------------------------------------------------------------------
# Full but artificial example (to try it, remove the first '#' from the lines below):
#
# username="$1"
# echo "# Hello world!" >> /home/$username/.bashrc
# pacman -S --noconfirm --needed geany chromium libreoffice-fresh
# Now *you* can add your commands into the two functions below.
#
#----------------------------------------------------------------------------------

_IsoConfig() {
# ISO configurations here.
# This runs before calamares is started.

local -r install_mode="$1" # 'online' or 'offline'
# ...
# ls /home/liveuser
}

_PostInstallCommands() {
# Post-install commands here.
# This runs near the end of calamares execution.

local -r username="$1" # new user you created for the target
# ...
# echo "# Hello world!" >> /home/$username/.bashrc
# pacman -S --noconfirm --needed geany chromium libreoffice-fresh
}

case "$1" in
--iso-config) _IsoConfig "$2" ;;
offline | online) _IsoConfig "$1" ;; # after Galileo neo!
*) _PostInstallCommands "$1" ;;
esac

0 comments on commit 2e38348

Please sign in to comment.