Release 1.1.0

* edited install script
* edited README
+ added license
This commit is contained in:
arcan1s
2013-12-23 23:39:07 +04:00
parent 4a002e0d8b
commit 9141a1fc12
5 changed files with 44 additions and 16 deletions

View File

@ -1,5 +1,21 @@
#!/bin/bash
func_error() {
echo "Error installing"
exit 1
}
cp -r etc /
cp -r usr /
[ -z "$1" ] && DESTDIR="/" || DESTDIR="$1"
[ -d "$DESTDIR" ] || mkdir -p "$DESTDIR" || func_error
cd "$(dirname "${BASH_SOURCE[0]}")"
# daemon and configuration
install -D -m755 "usr/bin/queued" "$DESTDIR/usr/bin/queued" || func_error
install -D -m644 "etc/queued.conf" "$DESTDIR/etc/queued.conf" || func_error
# service
install -D -m644 "usr/lib/systemd/system/queued.service" "$DESTDIR/usr/lib/systemd/system/queued.service" || func_error
# man pages
install -D -m644 "usr/share/man/man1/queued.1" "$DESTDIR/usr/share/man/man1/queued.1" || func_error
install -D -m644 "usr/share/man/man5/queued.conf.5" "$DESTDIR/usr/share/man/man5/queued.conf.5" || func_error
exit 0