Remove gravatar from koel

This commit is contained in:
Bob Mottram 2017-05-25 23:52:55 +01:00
parent 56e63ac2d7
commit 2583b4d96e
1 changed files with 11 additions and 0 deletions

View File

@ -49,6 +49,15 @@ koel_variables=(ONION_ONLY
MY_EMAIL_ADDRESS
MY_USERNAME)
function koel_remove_gravatar {
cd /var/www/${KOEL_DOMAIN_NAME}/htdocs
sed -i 's|www.gravatar.com|music.freedombone.net|g' node_modules/browser-sync-ui/public/js/app.js.map
sed -i 's|www.gravatar.com|music.freedombone.net|g' public/js/app.*.js
if ! grep -q "//Vue.set(user, 'avatar'" resources/assets/js/stores/user.js; then
sed -i "s|Vue.set(user, 'avatar'|//Vue.set(user, 'avatar'|g" resources/assets/js/stores/user.js
fi
}
function remove_user_koel {
remove_username="$1"
@ -294,6 +303,7 @@ function upgrade_koel {
cd /var/www/${KOEL_DOMAIN_NAME}/htdocs
php artisan koel:init
koel_remove_gravatar
chown -R www-data:www-data *
systemctl start koel
@ -686,6 +696,7 @@ function install_koel {
sed -i 's/MAIL_PORT=.*/MAIL_PORT=25/g' .env
php artisan koel:init
koel_remove_gravatar
chown -R www-data:www-data /var/www/$KOEL_DOMAIN_NAME/htdocs
# daemon