2019-11-21 12:29:22 +00:00
|
|
|
#!/bin/sh
|
2020-11-10 10:02:17 +00:00
|
|
|
ALBATROSS_USER=albatross
|
|
|
|
|
2019-11-21 12:29:22 +00:00
|
|
|
sudo mkdir -m 0700 -p /var/lib/albatross/block
|
2020-11-10 10:02:17 +00:00
|
|
|
sudo install -o "$ALBATROSS_USER" -- /dev/null /var/lib/albatross/albatross.log
|
2019-11-21 12:29:22 +00:00
|
|
|
|
2020-04-03 14:34:30 +00:00
|
|
|
sudo cp ../../_build/install/default/bin/* /usr/local/sbin/
|
2020-11-11 12:54:06 +00:00
|
|
|
sudo cp ./albatross_*.service ./albatross_*.socket /etc/systemd/system/
|
2019-11-21 12:29:22 +00:00
|
|
|
sudo systemctl daemon-reload
|
2020-04-03 14:34:30 +00:00
|
|
|
sudo systemctl stop albatross_console
|
|
|
|
sudo systemctl start albatross_console
|
|
|
|
sudo systemctl stop albatross_log
|
2019-11-21 12:29:22 +00:00
|
|
|
sudo systemctl start albatross_log
|
2020-04-03 14:34:30 +00:00
|
|
|
sudo systemctl stop albatross_daemon
|
2019-11-21 12:29:22 +00:00
|
|
|
sudo systemctl start albatross_daemon
|