1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-21 03:02:09 +00:00

Update: Make sure we download the files if we change the version numbers

This commit is contained in:
Git Repository 2017-05-06 10:09:16 -07:00
parent 7c4daa245d
commit 366ed49986

View File

@ -65,9 +65,6 @@ fi
# Download jQuery and Bootstrap local files # Download jQuery and Bootstrap local files
echo "Installing Mail-in-a-Box system management web assets..." echo "Installing Mail-in-a-Box system management web assets..."
js_lib=$STORAGE_ROOT/www/default/assets/js/lib
css_lib=$STORAGE_ROOT/www/default/assets/css/lib
# jQuery CDN URL # jQuery CDN URL
jquery_version=2.1.4 jquery_version=2.1.4
jquery_url=https://code.jquery.com jquery_url=https://code.jquery.com
@ -76,24 +73,27 @@ jquery_url=https://code.jquery.com
bootstrap_version=3.3.7 bootstrap_version=3.3.7
bootstrap_url=https://maxcdn.bootstrapcdn.com/bootstrap/$bootstrap_version bootstrap_url=https://maxcdn.bootstrapcdn.com/bootstrap/$bootstrap_version
# Get the Javascript files js_lib=$STORAGE_ROOT/www/default/assets/js/lib
css_lib=$STORAGE_ROOT/www/default/assets/css/lib
# Make sure we have the directories to save to.
if [ ! -d $js_lib ]; then if [ ! -d $js_lib ]; then
mkdir -p $js_lib mkdir -p $js_lib
wget_verify $jquery_url/jquery-$jquery_version.min.js 43dc554608df885a59ddeece1598c6ace434d747 $js_lib/jquery.min.js
wget_verify $bootstrap_url/js/bootstrap.min.js 430a443d74830fe9be26efca431f448c1b3740f9 $js_lib/bootstrap.min.js
fi fi
# Get the CSS(map) files
if [ ! -d $css_lib ]; then if [ ! -d $css_lib ]; then
mkdir -p $css_lib mkdir -p $css_lib
fi
# Get the Javascript files
wget_verify $jquery_url/jquery-$jquery_version.min.js 43dc554608df885a59ddeece1598c6ace434d747 $js_lib/jquery.min.js
wget_verify $bootstrap_url/js/bootstrap.min.js 430a443d74830fe9be26efca431f448c1b3740f9 $js_lib/bootstrap.min.js
# Get the CSS(map) files
wget_verify $bootstrap_url/css/bootstrap-theme.min.css 8256575374f430476bdcd49de98c77990229ce31 $css_lib/bootstrap-theme.min.css wget_verify $bootstrap_url/css/bootstrap-theme.min.css 8256575374f430476bdcd49de98c77990229ce31 $css_lib/bootstrap-theme.min.css
wget_verify $bootstrap_url/css/bootstrap-theme.min.css.map 87f7dfd79d77051ac2eca7d093d961fbd1c8f6eb $css_lib/bootstrap-theme.min.css.map wget_verify $bootstrap_url/css/bootstrap-theme.min.css.map 87f7dfd79d77051ac2eca7d093d961fbd1c8f6eb $css_lib/bootstrap-theme.min.css.map
wget_verify $bootstrap_url/css/bootstrap.min.css 6527d8bf3e1e9368bab8c7b60f56bc01fa3afd68 $css_lib/bootstrap.min.css wget_verify $bootstrap_url/css/bootstrap.min.css 6527d8bf3e1e9368bab8c7b60f56bc01fa3afd68 $css_lib/bootstrap.min.css
wget_verify $bootstrap_url/css/bootstrap.min.css.map e0d7b2bde55a0bac1b658a507e8ca491a6729e06 $css_lib/bootstrap.min.css.map wget_verify $bootstrap_url/css/bootstrap.min.css.map e0d7b2bde55a0bac1b658a507e8ca491a6729e06 $css_lib/bootstrap.min.css.map
fi
# Link the management server daemon into a well known location. # Link the management server daemon into a well known location.