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