Add customized riot web login image

This commit is contained in:
Bob Mottram 2017-05-10 14:15:53 +01:00
parent 38e085fc18
commit d41789c4df
2 changed files with 10 additions and 0 deletions

BIN
img/logo_riot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -141,6 +141,16 @@ function riot_download {
exit 542826
fi
cp -r $INSTALL_DIR/${RIOT_FILENAME}/* /var/www/$RIOT_DOMAIN_NAME/htdocs
# customize the login image
if [ -f ~/freedombone/img/logo_riot.png ]; then
cp ~/freedombone/img/logo_riot.png /var/www/$RIOT_DOMAIN_NAME/htdocs/img/logo.png
else
if [ -f /home/$MY_USERNAME/freedombone/img/logo_riot.png ]; then
cp /home/$MY_USERNAME/freedombone/img/logo_riot.png /var/www/$RIOT_DOMAIN_NAME/htdocs/img/logo.png
fi
fi
chown -R www-data:www-data /var/www/$RIOT_DOMAIN_NAME/htdocs
}