-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·36 lines (29 loc) · 1015 Bytes
/
install.sh
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
#!/bin/bash
set -e
if [ ! -e target/release/file-carrier ]; then
echo "Please build first with : cargo build --release"
exit 1
fi
echo ""
echo " Install Archipel File Carrier on your system"
echo ""
mkdir -p /usr/share/archipel-fc
# CLI
cp -v target/release/file-carrier /usr/share/archipel-fc/archipel-fc
ln -f -s /usr/share/archipel-fc/archipel-fc /usr/bin/archipel-fc
# Damon
cp -v target/release/file-carrier-daemon /usr/share/archipel-fc/archipel-fcd
cp -v daemon/user-archipel-fcd.service /etc/systemd/user/archipel-fcd.service
cp -v daemon/archipel-fcd.service /etc/systemd/system/archipel-fcd.service
echo ""
echo " Archipel File Carrier is now installed"
echo ""
echo " CLI interface is available as archipel-fc"
echo ""
echo " Enable and Start removable drive daemon with the following"
echo ""
echo " systemctl start --user archipel-fcd"
echo " systemctl enable --user archipel-fcd"
echo ""
echo " For system-wide service just remove --user in the previous commands"
echo ""