Merge pull request #1420 from NeoTheFox/dev

Fix ZeroTier forgetting its network after a reboot
This commit is contained in:
fewtarius 2023-05-12 15:40:18 -04:00 committed by GitHub
commit f286b0779e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -29,5 +29,7 @@ makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/systemd/system
cp -R ${PKG_DIR}/system.d/zerotier-one.service ${INSTALL}/usr/lib/systemd/system/
mkdir -p ${INSTALL}/etc/profile.d/
cp -R ${PKG_DIR}/profile.d/95-zerotier ${INSTALL}/etc/profile.d/
}

View file

@ -0,0 +1,5 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023-present NeoTheFox (https://github.com/NeoTheFox)
alias zerotier-cli="zerotier-cli -D/storage/.config/zerotier/"

View file

@ -4,7 +4,7 @@ Wants=network-pre.target
After=network-pre.target
[Service]
ExecStart=/usr/sbin/zerotier-one
ExecStart=/usr/sbin/zerotier-one /storage/.config/zerotier/
Restart=always
KillMode=process
Restart=on-failure