Remove googleapi links from akaunting
This commit is contained in:
parent
05660ba8f1
commit
c6bf24f406
|
@ -48,6 +48,35 @@ akaunting_variables=(ONION_ONLY
|
|||
DDNS_PROVIDER
|
||||
MY_USERNAME)
|
||||
|
||||
function akaunting_remove_bad_links {
|
||||
cd /var/www/$AKAUNTING_DOMAIN_NAME/htdocs
|
||||
|
||||
# copy jquery locally
|
||||
jquery_version='1.12.4'
|
||||
if [ ! -f jquery-${jquery_version}.js ]; then
|
||||
cd /var/www/$GHOST_DOMAIN_NAME/htdocs
|
||||
wget https://code.jquery.com/jquery-${jquery_version}.js
|
||||
jquery_hash=$(sha256sum jquery-${jquery_version}.js | awk -F ' ' '{print $1}')
|
||||
if [[ "$jquery_hash" != '430f36f9b5f21aae8cc9dca6a81c4d3d84da5175eaedcf2fdc2c226302cb3575' ]]; then
|
||||
echo $'Unexpected jquery hash value'
|
||||
exit 78363527
|
||||
fi
|
||||
fi
|
||||
|
||||
sed -i '/googleapi/d' resources/assets/sass/app.scss
|
||||
sed -i "s|ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js|$AKAUNTING_DOMAIN_NAME/jquery-${jquery_version}.js|g" vendor/league/flysystem/docs/_layouts/default.html
|
||||
sed -i '/googleapi/d' vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views/503.blade.php
|
||||
sed -i '/googleapi/d' vendor/almasaeed2010/adminlte/build/less/AdminLTE-without-plugins.less
|
||||
sed -i '/googleapi/d' vendor/almasaeed2010/adminlte/build/less/AdminLTE.less
|
||||
sed -i '/googleapi/d' vendor/almasaeed2010/adminlte/dist/css/AdminLTE.css
|
||||
sed -i '/googleapi/d' vendor/almasaeed2010/adminlte/dist/css/AdminLTE.min.css
|
||||
sed -i '/googleapi/d' vendor/almasaeed2010/adminlte/dist/css/alt/AdminLTE-without-plugins.css
|
||||
sed -i '/googleapi/d' vendor/almasaeed2010/adminlte/dist/css/alt/AdminLTE-without-plugins.min.css
|
||||
sed -i "s|ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js|$AKAUNTING_DOMAIN_NAME/jquery-${jquery_version}.js|g" vendor/almasaeed2010/adminlte/plugins/ckeditor/samples/old/jquery.html
|
||||
|
||||
chown -R www-data:www-data /var/www/$AKAUNTING_DOMAIN_NAME/htdocs
|
||||
}
|
||||
|
||||
function logging_on_akaunting {
|
||||
echo -n ''
|
||||
}
|
||||
|
@ -179,6 +208,7 @@ function upgrade_akaunting {
|
|||
|
||||
cd /var/www/$AKAUNTING_DOMAIN_NAME/htdocs
|
||||
install_composer
|
||||
akaunting_remove_bad_links
|
||||
|
||||
chown -R www-data:www-data /var/www/${AKAUNTING_DOMAIN_NAME}/htdocs
|
||||
}
|
||||
|
@ -424,6 +454,8 @@ function install_akaunting {
|
|||
function_check nginx_ensite
|
||||
nginx_ensite $AKAUNTING_DOMAIN_NAME
|
||||
|
||||
akaunting_remove_bad_links
|
||||
|
||||
systemctl restart mariadb
|
||||
systemctl restart php7.0-fpm
|
||||
systemctl restart nginx
|
||||
|
|
Loading…
Reference in New Issue