update script
This commit is contained in:
11
update.sh
11
update.sh
@@ -10,18 +10,23 @@ which curl &>/dev/null || {
|
||||
}
|
||||
set -e
|
||||
for f in nando nandod nando-desc nando-stats; do
|
||||
echo Updating $f
|
||||
curl -s https://bitbucket.org/MoonQ/nando/raw/tip/$f > /usr/local/bin/$f
|
||||
chmod a+rx /usr/local/bin/"$f"
|
||||
done
|
||||
|
||||
test -f /etc/nandorc || {
|
||||
echo "Copy https://bitbucket.org/MoonQ/nando/raw/tip/etc/nandorc.example to /etc/nandorc and edit it!"
|
||||
curl -s https://bitbucket.org/MoonQ/nando/raw/tip/etc/nandorc.example
|
||||
echo
|
||||
echo
|
||||
echo "Add systemd service to /etc/systemd/system/nando.service
|
||||
}
|
||||
test -f /etc/systemd/system/nando.service || {
|
||||
echo "
|
||||
|
||||
Add systemd service to /etc/systemd/system/nando.service
|
||||
systemctld enable nando
|
||||
|
||||
https://bitbucket.org/MoonQ/nando/raw/tip/etc/nando.service
|
||||
"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user