updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / profile-sync-daemon / readme.install
blob5271d0f16d7c8b6a86748675a1660eef5a7e60cf
1 post_install() {
2         echo '--------------------------------------------------------------------------'
3         echo '  Define which users will make use of the sync in /etc/psd.conf'
4         echo
5         echo '  More at: https://wiki.archlinux.org/index.php/Profile-sync-daemon'
6         echo '--------------------------------------------------------------------------'
9 post_upgrade() {
10         OLD=$(echo $2 | cut -f-1 -d '-')
11         # if upgrading from 2.0 display warning message
12         
13         if [ "$OLD" = "2.9" ]; then
14                 echo ' NOTE:'
15                 echo
16                 echo 'Make sure that you inspect /etc/psd.conf.pacnew and import the new'
17                 echo 'settings therein!  A nice change has occured in version 3.0 and you'
18                 echo 'will not want to miss it.'
19         fi
21         if [ "$OLD" = "2.1" ]; then
22                 echo ' WARNING:'
23                 echo
24                 echo 'In version 2.1 and above, the update function has been renamed to sync.'
25                 echo 'So only three functions are options: start, stop, and sync'
26                 echo
27     echo ' WARNING:'
28     echo
29     echo 'In version 2.3 and above, the need to manually add an entry in your'
30     echo 'root crontab to call the sync function is gone.  The PKG now adds a'
31     echo 'script in /etc/cron.hourly to do this for you.'
32     echo
33     echo 'If you are seeing this warning, it means that you are upgrading from'
34     echo 'an older version of the PKG and very likely need to edit your root'
35     echo 'crontab and REMOVE the line calling the daemon to sync your system!'
37         fi
39         if [ "$OLD" = "2.2" ]; then
40                 echo ' WARNING:'
41                 echo
42                 echo 'In version 2.3 and above, the need to manually add an entry in your'
43                 echo 'root crontab to call the sync function is gone.  The PKG now adds a'
44                 echo 'script in /etc/cron.hourly to do this for you.'
45                 echo
46                 echo 'If you are seeing this warning, it means that you are upgrading from'
47                 echo 'an older version of the PKG and very likely need to edit your root'
48                 echo 'crontab and REMOVE the line calling the daemon to sync your system!'
49         fi