🚑 Fixes upstream changed webroot location

This commit is contained in:
Franck Nijhof 2018-06-21 23:01:46 +02:00 committed by Franck Nijhof
parent 471fe599a9
commit a0ddbd8370
5 changed files with 8 additions and 8 deletions

View file

@ -10,14 +10,14 @@ if ! hass.directory_exists "/data/tasmoadmin"; then
hass.log.debug 'Data directory not initialized, doing that now...'
# Setup structure
cp -R /var/www/tasmoadmin/data /data/tasmoadmin
cp -R /var/www/tasmoadmin/tasmoadmin/data /data/tasmoadmin
# Ensure file permissions
chown -R nginx:nginx /data/tasmoadmin
find /data/tasmoadmin -not -perm 0644 -type f -exec chmod 0644 {} \;
find /data/tasmoadmin -not -perm 0755 -type d -exec chmod 0755 {} \;
find /data/tasmoadmin/tasmoadmin -not -perm 0644 -type f -exec chmod 0644 {} \;
find /data/tasmoadmin/tasmoadmin -not -perm 0755 -type d -exec chmod 0755 {} \;
fi
hass.log.debug 'Symlinking data directory to persistent storage location...'
rm -f -r /var/www/tasmoadmin/data
ln -s /data/tasmoadmin /var/www/tasmoadmin/data
rm -f -r /var/www/tasmoadmin/tasmoadmin/data
ln -s /data/tasmoadmin /var/www/tasmoadmin/tasmoadmin/data

View file

@ -16,7 +16,7 @@ http {
server_name hassio.local;
listen 9541 default_server ssl;
listen [::]:9541 default_server ssl;
root /var/www/tasmoadmin;
root /var/www/tasmoadmin/tasmoadmin;
index index.php;
ssl_certificate /ssl/%%certfile%%;

View file

@ -16,7 +16,7 @@ http {
server_name hassio.local;
listen 9541 default_server;
listen [::]:9541 default_server;
root /var/www/tasmoadmin/;
root /var/www/tasmoadmin/tasmoadmin/;
index index.php;
location /data/firmwares {

View file

@ -1,2 +1,2 @@
/data/tasmoadmin/*
/var/www/tasmoadmin/data/*
/var/www/tasmoadmin/tasmoadmin/data/*