mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 18:48:36 -07:00
Add Asustor build scripts
This commit is contained in:
parent
66236e91a2
commit
1a5274b86b
16 changed files with 334 additions and 1 deletions
24
pkg/asustor/zerotier/CONTROL/post-install.sh
Executable file
24
pkg/asustor/zerotier/CONTROL/post-install.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
APKG_PKG_DIR=/usr/local/AppCentral/zerotier
|
||||
|
||||
case "$APKG_PKG_STATUS" in
|
||||
|
||||
install)
|
||||
modprobe tun
|
||||
mkdir -p /usr/local/bin
|
||||
mv ${APKG_PKG_DIR}/bin/zerotier-one.${AS_NAS_ARCH} ${APKG_PKG_DIR}/bin/zerotier-one
|
||||
ln -s ${APKG_PKG_DIR}/bin/zerotier-one /usr/local/bin/zerotier-cli
|
||||
ln -s ${APKG_PKG_DIR}/bin/zerotier-one /usr/local/bin/zerotier-idtool
|
||||
ln -s $APKG_PKG_DIR/data /var/lib/zerotier-one
|
||||
;;
|
||||
upgrade)
|
||||
# post upgrade script here (restore data)
|
||||
# cp -af $APKG_TEMP_DIR/* $APKG_PKG_DIR/etc/.
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue