snipe-it/install.sh

14 lines
382 B
Bash
Raw Normal View History

2016-03-25 01:18:05 -07:00
# ensure running as root
if [ "$(id -u)" != "0" ]; then
#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
2016-03-25 01:18:05 -07:00
fi
wget https://raw.githubusercontent.com/snipe/snipe-it/master/snipeit.sh
2016-03-25 01:18:05 -07:00
chmod 744 snipeit.sh
sudo ./snipeit.sh 2>&1 | sudo tee -a /var/log/snipeit-install.log