mirror of
https://github.com/hassio-addons/addon-tasmoadmin.git
synced 2025-05-04 11:01:27 +00:00
🔥 Remove old sonweb migration path
This commit is contained in:
parent
329bb5bdca
commit
4bb8e76ab4
1 changed files with 0 additions and 13 deletions
|
@ -4,19 +4,6 @@
|
|||
# Configures TasmoAdmin
|
||||
# ==============================================================================
|
||||
|
||||
# Migrate from older installations
|
||||
if bashio::fs.directory_exists "/data/sonweb"; then
|
||||
bashio::log.info 'Migrating data from sonweb to tasmoadmin...'
|
||||
|
||||
# Rename data folder
|
||||
mv /data/sonweb /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 {} \;
|
||||
fi
|
||||
|
||||
# Ensure persistant storage exists
|
||||
if ! bashio::fs.directory_exists "/data/tasmoadmin"; then
|
||||
bashio::log.debug 'Data directory not initialized, doing that now...'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue