mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-01 10:19:59 +00:00
a27f9fcdbd
Add the `-p` to the `mkdir` so it doesn't fail when the folder already exists Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
11 lines
356 B
Bash
Executable File
11 lines
356 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cp "release/meshtasticd_linux_$(uname -m)" /usr/sbin/meshtasticd
|
|
mkdir -p /etc/meshtasticd
|
|
if [[ -f "/etc/meshtasticd/config.yaml" ]]; then
|
|
cp bin/config-dist.yaml /etc/meshtasticd/config-upgrade.yaml
|
|
else
|
|
cp bin/config-dist.yaml /etc/meshtasticd/config.yaml
|
|
fi
|
|
cp bin/meshtasticd.service /usr/lib/systemd/system/meshtasticd.service
|