blob: edc2a1633fb2740cf51621f703d0f8764fcd216b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
post_install () {
echo '========================================================================='
echo '|| /!\ WARNING /!\ ||'
echo '========================================================================='
echo '|| ||'
echo '|| Installing this package is not enough to setup Immuarch. ||'
echo '|| Please read the README at https://framagit.org/Brumaire/immuarch ||'
echo '|| ||'
echo '========================================================================='
}
pre_upgrade () {
new_version=$(echo "$1" | cut -d "." -f 1-3 )
old_version=$(echo "$2" | cut -d "." -f 1-3 )
if ! mountpoint /immuarch ; then
echo "ERROR : /immuarch is not a mountpoint, you're doing something wrong !"
echo "To properly update this package, run immuarch-evolve -Nu, THEN install the package in interactive shell."
return 1
fi
#rename config files
if [[ "$old_version" < "0.1.1" ]] ; then
echo '========================================================================='
echo '|| /!\ WARNING /!\ ||'
echo '========================================================================='
echo "From 0.1.1, some immuarch config files were renamed :"
echo "rw-subvolumes.conf => subvolumes.conf"
echo "user-bind-mount-runtime.conf => add-bind-mount-runtime.conf"
echo "user-fstab.conf => add-fstab.conf"
echo "Please update your /immuarch/immuarch-etc config to comply with the new name"
fi
}
|