Skip to content

Commit

Permalink
Support configuring smtp settings (#4161)
Browse files Browse the repository at this point in the history
* Able to configure smtp settings. General cleanup.

* Check if sudo is available.
  • Loading branch information
tiagom62 authored and snipe committed Oct 6, 2017
1 parent 10c13ba commit 1ad7bbd
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 65 deletions.
8 changes: 7 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# ensure running as root
if [ "$(id -u)" != "0" ]; then
exec sudo "$0" "$@"
#Debian doesnt have sudo if root has a password.
if ! hash sudo 2>/dev/null; then
exec su -c "$0" "$@"
else
exec sudo "$0" "$@"
fi
fi

wget https://raw.githubusercontent.com/snipe/snipe-it/master/snipeit.sh
chmod 744 snipeit.sh
sudo ./snipeit.sh 2>&1 | sudo tee -a /var/log/snipeit-install.log
Loading

0 comments on commit 1ad7bbd

Please sign in to comment.