updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / connectaddin / connectaddin.install
blob73e898797c12e010d207fed41a334a6a0294aac4
1 pre_install() {
2 set -e
4 ADDIN_TARGET_PATH_USER="/.macromedia/Flash_Player/www.macromedia.com/bin/connectaddin/"
6 # create a link of the connect addin executable in all the home directories
7 for currentUser in `ls /home`
8 do
9         ADDIN_TARGET_ABS_PATH="/home/"$currentUser$ADDIN_TARGET_PATH_USER
10         rm -rf $ADDIN_TARGET_ABS_PATH
11 done
14 post_install() {
15 set -e
17 ADDIN_TARGET_PATH_USER="/.macromedia/Flash_Player/www.macromedia.com/bin/connectaddin/"
19 # create a link of the connect addin executable in all the home directories
20 while IFS=: read -r f1 f2 f3 f4 f5 f6 f7
22         if test "$f3" -gt "999"
23         then
24                 if [ -d $f6 ]; then
25                         ADDIN_TARGET_ABS_PATH=$f6$ADDIN_TARGET_PATH_USER
26                         rm -rf $ADDIN_TARGET_ABS_PATH
27                         mkdir -p $ADDIN_TARGET_ABS_PATH
28                         cd $ADDIN_TARGET_ABS_PATH
29                         ln -s /usr/local/connectaddin
30                         ln -s /usr/local/digest.s
31                 fi
32         fi
33 done < /etc/passwd