Installer fix

This commit is contained in:
themylogin
2018-11-15 20:45:12 +03:00
committed by Kris Moore
parent d587fc53e3
commit cc78dc02bd

View File

@@ -53,6 +53,9 @@ post-upgrade =
# vcp got removed and this is to ensure that the relevant directory is deleted if upgrader fails to remove it
rm -rf /usr/local/www/freenasUI/vcp
# documention app got removed but upgrader couldnt remove it at some point
rm -rf /usr/local/www/freenasUI/documentation
touch /tmp/.sqlite3_ha_skip
# If database does not have account:0005_add_netdata_user
@@ -68,9 +71,6 @@ post-upgrade =
fi
rm -f /tmp/.sqlite3_ha_skip
# documention app got removed but upgrader couldnt remove it at some point
rm -rf /usr/local/www/freenasUI/documentation
# Remove dangling .pyc files because previously freenas-ui did not include .pyc in pkg-plist
find /usr/local/www/freenasUI -type f -iname "*.pyc" | while read f; do
if ! dirname $f|grep -q __pycache__; then