19 lines
622 B
Bash
Executable File
19 lines
622 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Purpose : Install openhamclock
|
|
|
|
if [ ! -d "$HOME/.local/bin/openhamclock" ]; then
|
|
curl -fsSL https://raw.githubusercontent.com/accius/openhamclock/main/scripts/setup-linux.sh | \
|
|
sed 's|INSTALL_DIR="$HOME/openhamclock"|INSTALL_DIR="$HOME/.local/bin/openhamclock"|' | \
|
|
bash -s -- --service
|
|
fi
|
|
|
|
cd "$HOME/.local/bin/openhamclock" && npm install
|
|
|
|
mkdir -p "$HOME/.config/systemd/user"
|
|
cp "$HOME/.local/share/HamPackServer/servicefiles/openhamclock.service" "$HOME/.config/systemd/user/"
|
|
|
|
systemctl --user daemon-reload
|
|
systemctl --user enable --now openhamclock
|
|
|
|
echo "openhamclock is installed"... |