-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·41 lines (33 loc) · 843 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·41 lines (33 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# echo "Installing for user $(whoami)."
# echo "Continue? [y/n]"
# read -r response
# if [ "$response" != "y" ]; then
# echo "Aborted."
# exit 1
# fi
cargo build --release --features app &&
./target/release/glimpse-indexer --init &&
installdir="/usr/local/bin"
sudo cp target/release/glimpse $installdir &&
sudo cp target/release/glimpse-indexer $installdir &&
# sudo cp target/release/glimpse-monitor $installdir &&
#
# echo "[Unit]
# Description=File change monitor for Glimpse
# After=network.target
#
# [Service]
# ExecStart=$installdir/glimpse-monitor
# Restart=always
# User=root
# Group=root
#
# [Install]
# WantedBy=multi-user.target
# " > glimpse-monitor.service
# sudo systemctl daemon-reload &&
#
# sudo systemctl enable glimpse-monitor.service
# sudo systemctl start glimpse-monitor.service
echo "Installed."