diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-08-27 05:07:26 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-08-27 05:07:26 -0300 |
commit | 0ff008e3c9dcc5ef088f481dfff3dcd121575598 (patch) | |
tree | d6f6cf5d6939e1f030a48d3711d3606570afd08f /social/spectrum/spectrum.install | |
parent | ed9d1c12bbfcf9cb8b3d53e886edb679df372640 (diff) |
move some packages from [social] to [pcr] and remove unused [social]
Diffstat (limited to 'social/spectrum/spectrum.install')
-rw-r--r-- | social/spectrum/spectrum.install | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/social/spectrum/spectrum.install b/social/spectrum/spectrum.install deleted file mode 100644 index 738fc5bbe..000000000 --- a/social/spectrum/spectrum.install +++ /dev/null @@ -1,47 +0,0 @@ -# arg 1: the new package version -post_install() { - if [ -z "`grep '^spectrum:' /etc/group`" ]; then - groupadd -g 417 spectrum - fi - if [ -z "`grep '^spectrum:' /etc/passwd`" ]; then - useradd -u 417 -d /etc/spectrum -g spectrum -s /bin/false spectrum - fi - - chown spectrum:spectrum var/lib/spectrum - chown spectrum:spectrum var/log/spectrum - chown spectrum:spectrum var/run/spectrum - -cat << EOF - -==> Documentation: http://spectrum.im/ - -==> You must now customize the configuration file located in /etc/spectrum/. Copy and reconfigure for each seperate protocol. - -EOF - -} - -# arg 1: the new package version -# arg 2: the old package version -post_upgrade() { - post_install $1 -} - -# arg 1: the old package version -post_remove() { - userdel spectrum - - paths=(/etc/spectrum /var/lib/spectrum /var/log/spectrum - /var/run/spectrum) - - first=true - for path in ${paths[@]}; do - if [ -d $path ]; then - if $first; then - first=false - echo "==> Leftover Paths:" - fi - echo "==> $path" - fi - done -} |