Insure running as root. added comment

added comment to ubuntu installer so people know to wait.
This commit is contained in:
Wahlstedt, Walter
2015-11-23 16:37:54 -05:00
parent 4b926f015b
commit f8014c4677
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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
View File
@@ -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