diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-08-21 11:08:06 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-08-21 11:08:06 -0300 |
commit | 7724f8fa488693e40ff3d7c6759a57cc4ddf257d (patch) | |
tree | 791845f81b6282aae76afbc19c126fff93b172db /share/templater/trashman-debian/setup | |
parent | b577dadfed6058bee17d90d80ae2915b3fd132f9 (diff) | |
download | templater-7724f8fa488693e40ff3d7c6759a57cc4ddf257d.tar.gz templater-7724f8fa488693e40ff3d7c6759a57cc4ddf257d.tar.bz2 |
Adds hoarder, hoarder-debian and trashman-debian
Diffstat (limited to 'share/templater/trashman-debian/setup')
-rwxr-xr-x | share/templater/trashman-debian/setup | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/share/templater/trashman-debian/setup b/share/templater/trashman-debian/setup new file mode 100755 index 0000000..ea38c38 --- /dev/null +++ b/share/templater/trashman-debian/setup @@ -0,0 +1,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 |