Prevent the pleroma logo from getting overwritten during upgrades

This commit is contained in:
Bob Mottram 2018-02-08 11:29:59 +00:00
parent 2374a4f746
commit ed9b8f77cf
1 changed files with 4 additions and 2 deletions

View File

@ -276,10 +276,12 @@ function install_gnusocial_default_background {
# customise the logo # customise the logo
if [ -f $basedir/static/logo.png ]; then if [ -f $basedir/static/logo.png ]; then
if [ -f ~/freedombone/img/logo_fbone3.png ]; then if [ -f ~/freedombone/img/logo_fbone3.png ]; then
cp ~/freedombone/img/logo_fbone3.png $basedir/static/logo.png cp ~/freedombone/img/logo_fbone3.png $basedir/static/logo_custom.png
sed -i "s|\"logo\":.*|\"logo\": \"/static/logo_custom.png\",|g" $basedir/static/config.json
else else
if [ -f /home/$MY_USERNAME/freedombone/img/logo_fbone3.png ]; then if [ -f /home/$MY_USERNAME/freedombone/img/logo_fbone3.png ]; then
cp /home/$MY_USERNAME/freedombone/img/logo_fbone3.png $basedir/static/logo.png cp /home/$MY_USERNAME/freedombone/img/logo_fbone3.png $basedir/static/logo_custom.png
sed -i "s|\"logo\":.*|\"logo\": \"/static/logo_custom.png\",|g" $basedir/static/config.json
fi fi
fi fi
fi fi