mirror of
https://github.com/hassio-addons/addon-tasmoadmin.git
synced 2025-05-04 19:11:26 +00:00
🚑 Fixes upstream changed webroot location
This commit is contained in:
parent
471fe599a9
commit
a0ddbd8370
5 changed files with 8 additions and 8 deletions
|
@ -10,14 +10,14 @@ if ! hass.directory_exists "/data/tasmoadmin"; then
|
||||||
hass.log.debug 'Data directory not initialized, doing that now...'
|
hass.log.debug 'Data directory not initialized, doing that now...'
|
||||||
|
|
||||||
# Setup structure
|
# Setup structure
|
||||||
cp -R /var/www/tasmoadmin/data /data/tasmoadmin
|
cp -R /var/www/tasmoadmin/tasmoadmin/data /data/tasmoadmin
|
||||||
|
|
||||||
# Ensure file permissions
|
# Ensure file permissions
|
||||||
chown -R nginx:nginx /data/tasmoadmin
|
chown -R nginx:nginx /data/tasmoadmin
|
||||||
find /data/tasmoadmin -not -perm 0644 -type f -exec chmod 0644 {} \;
|
find /data/tasmoadmin/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 0755 -type d -exec chmod 0755 {} \;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
hass.log.debug 'Symlinking data directory to persistent storage location...'
|
hass.log.debug 'Symlinking data directory to persistent storage location...'
|
||||||
rm -f -r /var/www/tasmoadmin/data
|
rm -f -r /var/www/tasmoadmin/tasmoadmin/data
|
||||||
ln -s /data/tasmoadmin /var/www/tasmoadmin/data
|
ln -s /data/tasmoadmin /var/www/tasmoadmin/tasmoadmin/data
|
||||||
|
|
|
@ -16,7 +16,7 @@ http {
|
||||||
server_name hassio.local;
|
server_name hassio.local;
|
||||||
listen 9541 default_server ssl;
|
listen 9541 default_server ssl;
|
||||||
listen [::]:9541 default_server ssl;
|
listen [::]:9541 default_server ssl;
|
||||||
root /var/www/tasmoadmin;
|
root /var/www/tasmoadmin/tasmoadmin;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
ssl_certificate /ssl/%%certfile%%;
|
ssl_certificate /ssl/%%certfile%%;
|
||||||
|
|
|
@ -16,7 +16,7 @@ http {
|
||||||
server_name hassio.local;
|
server_name hassio.local;
|
||||||
listen 9541 default_server;
|
listen 9541 default_server;
|
||||||
listen [::]:9541 default_server;
|
listen [::]:9541 default_server;
|
||||||
root /var/www/tasmoadmin/;
|
root /var/www/tasmoadmin/tasmoadmin/;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
location /data/firmwares {
|
location /data/firmwares {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
/data/tasmoadmin/*
|
/data/tasmoadmin/*
|
||||||
/var/www/tasmoadmin/data/*
|
/var/www/tasmoadmin/tasmoadmin/data/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue