diff options
-rwxr-xr-x | retiolum/scripts/tinc_setup/new_install.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh index c6a572d2..7a62e13b 100755 --- a/retiolum/scripts/tinc_setup/new_install.sh +++ b/retiolum/scripts/tinc_setup/new_install.sh @@ -302,8 +302,13 @@ get_hostname $HOSTN #create the configs -mkdir -p /etc/tinc/$NETNAME -cd /etc/tinc/$NETNAME +if [ $OS -eq 2 ];then + mkdir -p /usr/local/etc/tinc/$NETNAME + cd /usr/local/etc/tinc/$NETNAME +else + mkdir -p /etc/tinc/$NETNAME + cd /etc/tinc/$NETNAME +fi mv $TEMPDIR/hosts ./ |