diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-12-16 11:51:24 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-12-16 11:51:24 +0100 |
commit | c6000c9d9949b3326fb82f02431899ab6774b960 (patch) | |
tree | 2453cd564b0f382f3d8ccd893df8ebe2e9aeda71 /tenshi/tenshi.install | |
parent | 453f0f12918af35bd8e1e5f049841360f37d62e4 (diff) | |
download | aur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.gz aur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.xz |
big cleanup
Diffstat (limited to 'tenshi/tenshi.install')
-rw-r--r-- | tenshi/tenshi.install | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tenshi/tenshi.install b/tenshi/tenshi.install deleted file mode 100644 index 270cd64..0000000 --- a/tenshi/tenshi.install +++ /dev/null @@ -1,42 +0,0 @@ -# $Id: $ -# -# Description: post-install script for tenshi -# Contributor: Ryan Corder <ryanc@greengrey.org> -# - -# arg 1: new package version -post_install() { - # create tenshi user - if [ -z "`grep '^tenshi:' /etc/group`" ]; then - groupadd tenshi - fi - if [ -z "`grep '^tenshi:' /etc/passwd`" ]; then - useradd -d /var/lib/tenshi -g tenshi -s /bin/false tenshi - else - usermod -s /bin/false tenshi - fi - - # set more secure permissions on config files, etc - chown -R tenshi:tenshi /etc/tenshi - chmod 640 /etc/tenshi/tenshi.conf - chown -R tenshi:tenshi /var/lib/tenshi - chmod 750 /var/lib/tenshi - chmod -R o-rwx /var/lib/tenshi -} - -# arg 1: new package version -# arg 2: old package version -post_upgrade() { - post_install $1 -} - -# arg 1: old package version -pre_remove() { - userdel tenshi &> /dev/null - groupdel tenshi &> /dev/null -} - -op=$1 -shift - -$op $* |