diff options
Diffstat (limited to 'services/bin/sync-host-to-services')
-rwxr-xr-x | services/bin/sync-host-to-services | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/bin/sync-host-to-services b/services/bin/sync-host-to-services index ed795fb6..526bc569 100755 --- a/services/bin/sync-host-to-services +++ b/services/bin/sync-host-to-services @@ -4,12 +4,12 @@ red='\e[0;31m' nc='\e[0m' outdir=${1?please provide services-outdir} -find /etc/tinc/retiolum/hosts/ -type f | while read hostfile;do +find ../../retiolum/hosts -type f | while read hostfile;do host=$(basename "$hostfile") if test -e "$outdir/$host";then - echo "${green}$host already exists$nc" + printf "${green}$host already exists$nc\n" else - echo "${red}$host missing, adding${nc}" + printf "${red}$host missing, adding${nc}\n" cat ../services.txt | sed "s#{{hostname}}#$host#" > $outdir/$host fi done |