opensans.woff is installed into css, not css/opensans
|Assignee:||Jaime Melis||% Done:|
|Target version:||Release 5.0|
|Affected Versions:||OpenNebula 4.14|
install.sh installs opensans.woff into $SUNSTONE_LOCATION/public/css, but referenced as css/opensans/opensans.woff.
Workaround ln -s ../opensans.woff css/opensans/opensans.woff works, but install.sh should be corrected or reference inside app.min.css.
It is for minified version.
#6 Updated by Rolandas Naujikas about 4 years ago
It happens when install to directory. For e.g.
./install.sh -d /var/lib/one/4.14.2e -p
As a workaround my install script has
mv -f /var/lib/one/4.14.2e/lib/sunstone/public/css/opensans.woff /var/lib/one/4.14.2e/lib/sunstone/public/css/opensans/
The problem is in install.sh file:
INSTALL_SUNSTONE_PUBLIC_MINIFIED_FILES=( ... SUNSTONE_PUBLIC_CSS_FILES:$SUNSTONE_LOCATION/public/css ...
All files in $SUNSTONE_PUBLIC_CSS_FILES are copied to root at $SUNSTONE_LOCATION/public/css including opensans.woff with
cp -RL $SRC_DIR/$1 $DESTDIR$2
Possible solution would be remove opensans.woff from SUNSTONE_PUBLIC_CSS_FILES and create separate rule for it.
My Linux distribution is Debian 8.