aboutsummaryrefslogtreecommitdiff
path: root/share/templater/trashman-debian/setup
blob: ea38c383f873ccbf2c8fac5e21427da8608db16e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#
# Trashman package templater module for debian systems.
#

# Parameters
SHARE="$1"

# Include basic functions
source $SHARE/templater/functions || exit 1

# Templater module
function templater_trashman_debian {
  if [ ! -e "description" ]; then
    templater_echo "Setting Trashman package for debian systems"

    touch info
    mkdir unix/linux/debian

    if [ ! -e 'unix/linux/debian/install' ]; then
      cp $SHARE/trashman-debian/files/install unix/linux/debian/install
      chmod +x unix/linux/debian/install
    fi
  else
    templater_echo "Trashman package already set"
  fi
}

# Dispatch
templater_trashman