Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit cc6c8aa

Browse files
committed
install-raspbian: inform about URL to access Photobooth
Change-Id: I586da155e7183835eab133e68e6ed784a0cfc291
1 parent e364ddf commit cc6c8aa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

install-raspbian.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ set -e
99
RUNNING_ON_PI=true
1010
SILENT_INSTALL=false
1111
DATE=$(date +"%Y%m%d-%H-%M")
12+
IPADDRESS=$('hostname -I | cut -d " " -f 1')
1213

1314
if [ ! -z $1 ]; then
1415
webserver=$1
@@ -246,6 +247,12 @@ else
246247
fi
247248
fi
248249

250+
if [ "$INSTALLFOLDER" == "photobooth" ] ;then
251+
$URL = "http://$IPADDRESS/photobooth"
252+
else
253+
$URL = "http://$IPADDRESS"
254+
fi
255+
249256
info "### Now we are going to install Photobooth."
250257
git clone https://github.com/andi34/photobooth $INSTALLFOLDER
251258
cd $INSTALLFOLDERPATH
@@ -431,6 +438,9 @@ fi
431438
# Pi specific setup end
432439
433440
info "### Congratulations you finished the install process."
441+
info " Photobooth can be accessed at:"
442+
info " $URL"
443+
info "###"
434444
info "### Have fun with your Photobooth, but first restart your device."
435445
436446
echo -e "\033[0;33m"

0 commit comments

Comments
 (0)