77 |
USER="${SMB_UPDATE_USER}" |
USER="${SMB_UPDATE_USER}" |
78 |
PASS="${SMB_UPDATE_PASS}" |
PASS="${SMB_UPDATE_PASS}" |
79 |
|
|
80 |
|
# disable colors |
81 |
|
export NOCOLORS=true |
82 |
|
|
83 |
# set some proper traps |
# set some proper traps |
84 |
trap "trap_exit" SIGINT SIGQUIT |
trap "trap_exit" SIGINT SIGQUIT |
85 |
|
|
117 |
# to be safe, mount boot (kernel updates !) |
# to be safe, mount boot (kernel updates !) |
118 |
mount /boot &> /dev/null |
mount /boot &> /dev/null |
119 |
|
|
120 |
# first update mage |
# first update mage if an update is available |
121 |
mage install mage || die "install mage" |
mage pretend mage &> /dev/null |
122 |
|
if [[ $? = 1 ]] |
123 |
|
then |
124 |
|
mage install mage || die "install mage" |
125 |
|
fi |
126 |
|
|
127 |
# then clean forcefully all packages that does not fit the profile |
# then clean forcefully all packages that does not fit the profile |
128 |
if [ -f /etc/mage-profile/forced-uninstall ] |
if [ -f /etc/mage-profile/forced-uninstall ] |