fix: Update Shebangs and daily.sh for FreeBSD compatibility (#6413)

* Where shebangs had no flags, updated them to use /usr/bin/env for cross-platform compatibility
Updated daily.sh to support FreeBSD (su has different args, replaced with sudo when not on linux)

* Added myself to AUTHORD.md as per contributor guidelines

* Set all platforms to use sudo rather than su
Re-added missing arguments to sudo
This commit is contained in:
Jonathan Price
2017-04-18 02:14:23 +01:00
committed by Tony Murray
parent 0b2f5cddd2
commit 2186e3b79a
12 changed files with 15 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Observium to LibreNMS conversion
####################### SCRIPT DESCRIPTION ########################
@@ -50,4 +50,4 @@ while read line;
done < $NODELIST
# This line SSHs to LibreNMS server and runs the destwork script to finish conversion
ssh root@$DEST 'bash -s' < $DESTSCRIPT
ssh root@$DEST 'bash -s' < $DESTSCRIPT