Insure running as root. added comment
added comment to ubuntu installer so people know to wait.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
# ensure running as root
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
exec sudo "$0" "$@"
|
||||
fi
|
||||
wget https://raw.githubusercontent.com/merid14/snipe-it/develop/snipeit.sh
|
||||
chmod 744 snipeit.sh
|
||||
sudo ./snipeit.sh 2>&1 | sudo tee -a /var/log/snipeit-install.log
|
||||
+1
-1
@@ -141,7 +141,7 @@ case $distro in
|
||||
|
||||
#Update/upgrade Debian/Ubuntu repositories, get the latest version of git.
|
||||
echo ""
|
||||
echo "## Updating ubuntu"
|
||||
echo "## Updating ubuntu in the background. Please be patient."
|
||||
echo ""
|
||||
apachefile=/etc/apache2/sites-available/$name.conf
|
||||
sudo apt-get update >> /var/log/snipeit-install.log 2>&1
|
||||
|
||||
Reference in New Issue
Block a user