mirror of
https://github.com/hassio-addons/addon-tasmoadmin.git
synced 2025-05-04 11:01:27 +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...'
|
||||
|
||||
# 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
|
||||
|
|
|
@ -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%%;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/data/tasmoadmin/*
|
||||
/var/www/tasmoadmin/data/*
|
||||
/var/www/tasmoadmin/tasmoadmin/data/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue