installer and updater

This commit is contained in:
q
2017-12-18 10:00:38 +02:00
parent 5aaac569df
commit bbdffb55be
4 changed files with 52 additions and 0 deletions

13
install.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
[[ $UID -eq 0 ]] || {
echo Run as root to install in /usr/local/bin >&2
exit 1
}
for f in nando nandod nando-desc nando-stats; do
cp -vi "$f" /usr/local/bin/
chmod a+rx /usr/local/bin/"$f"
done
echo "Copy etc/nandorc.example /etc/nandorc and edit it!"