plinth api directory

This commit is contained in:
Bob Mottram 2018-05-26 18:58:13 +01:00
parent b597ac0971
commit 5776a4bb93
1 changed files with 3 additions and 3 deletions

View File

@ -1218,10 +1218,10 @@ function install_web_local_user_interface {
nginx_ensite "${local_hostname}"
# Compatibility with FreedomBox android app
# The installed apps get published to a json file called "1"
# The installed apps get published to a json file called api.json
# in this directory
if [ ! -d "/var/www/${local_hostname}/htdocs/plinth/api" ]; then
mkdir -p "/var/www/${local_hostname}/htdocs/plinth/api"
if [ ! -d "/var/www/${local_hostname}/htdocs/plinth" ]; then
mkdir -p "/var/www/${local_hostname}/htdocs/plinth"
fi
chown -R www-data:www-data "/var/www/${local_hostname}/htdocs"