🔥 Remove old sonweb migration path

This commit is contained in:
Franck Nijhof 2020-08-23 12:33:07 +02:00
parent 329bb5bdca
commit 4bb8e76ab4
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

View file

@ -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...'