mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00

2. added SCTP protocol and schema support 3. added set of NAS models support (Asustor, ReadyNAS, Drobo, QNAP, WD, Synology, Terramaster) 4. moved to fc00::/7 private segment 5. added Windows, MacOS and Linux UI for peers edit and current status
20 lines
543 B
Bash
Executable file
20 lines
543 B
Bash
Executable file
#!/bin/sh
|
|
|
|
INST_PATH=/mnt/HD/HD_a2/Nas_Prog/mesh
|
|
MESH_PACKAGE_LOG=/var/log/mesh.log
|
|
echo "install.sh called" >> "$MESH_PACKAGE_LOG"
|
|
|
|
path_src="$1"
|
|
path_dst="$2"
|
|
|
|
rm -rf "$INST_PATH"
|
|
mv "$path_src" "$path_dst"
|
|
#LOG_SYMLINK
|
|
ln -s "$INST_PATH"/var/log/mesh.log "$INST_PATH"/www/log
|
|
#already installed in start
|
|
#ln -s "$INST_PATH"/apache-mesh.conf /usr/local/apache2/conf/extra
|
|
|
|
echo "install.sh: setting permissions to '$path_dst/mesh'" >> "$MESH_PACKAGE_LOG"
|
|
chown -R nobody:share "$path_dst/mesh"
|
|
|
|
#( sleep 2 ; /usr/sbin/apache restart web ) &
|