Installer fine tuning (#2993)
Installer fine tuning (#2993)

* used shellcheck to lint snipeit.sh

* do not depend on lsb-release command

* add lsb codename

* really use perms()

* more fixes

* quiet apt

* silent logging using log()

* start mysql if not running

* added curl to ubuntu

* added logfile to log function

* update apt index after adding mariadb repo

* fixed typo

* review fixes

uberbrady/snipe-it,dmeltzer/snipe-it,mtucker6784/snipe-it,dkmansion/snipe-it,uberbrady/snipe-it,bytepark/snipe-it,ixmid/snipe-it,madd15/snipe-it,GeoffYoung/snipe-it,snipe/snipe-it,dkmansion/snipe-it,GeoffYoung/snipe-it,uberbrady/snipe-it,bytepark/snipe-it,kpawelski/ITManager,uberbrady/snipe-it,bytepark/snipe-it,GeoffYoung/snipe-it,anuj-rajput/snipe-it,ppavlov28/snipe-it,dmeltzer/snipe-it,anuj-rajput/snipe-it,tiagom62/snipe-it,mtucker6784/snipe-it,mtucker6784/snipe-it,dkmansion/snipe-it,ppavlov28/snipe-it,madd15/snipe-it,snipe/snipe-it,uberbrady/snipe-it,bytepark/snipe-it,mtucker6784/snipe-it,kpawelski/ITManager,ixmid/snipe-it,tiagom62/snipe-it,ppavlov28/snipe-it,kpawelski/ITManager,snipe/snipe-it,dmeltzer/snipe-it,dkmansion/snipe-it,dmeltzer/snipe-it,madd15/snipe-it,GeoffYoung/snipe-it,kpawelski/ITManager,snipe/snipe-it,ixmid/snipe-it,mtucker6784/snipe-it,tiagom62/snipe-it,madd15/snipe-it,tiagom62/snipe-it,anuj-rajput/snipe-it,anuj-rajput/snipe-it,ixmid/snipe-it