updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / fcronq / FcronQ.install
blob28dd988494296eca08842c23be4a14979305ae74
1 # FcronQ: Installer: Arch
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
4 post_install() {
5         # Change file permissions
6         chmod 777 /usr/share/FcronQ/Source/
7         chmod 644 /etc/fcron/fcron.conf
9         # Remove old files
10         user_remove
12         #/bin/true
15 post_upgrade() {
16         post_install
17         #/bin/true
20 pre_remove() {
21         /bin/true
24 user_remove() {
25         # User
26         if [ ${USER} ]; then
27                 export USER=${LOGNAME}
28         fi
30         # Home
31         if [ ${SUDO_USER} ]; then
32                 export HOME=/home/${SUDO_USER}
33         else
34                 export HOME=/home/${USER}
35         fi
38 post_remove() {
39         rm -rf /usr/share/FcronQ/
41         user_remove
43         #/bin/true
46 op=$1
47 shift
49 $op "$@"