Prevent the pleroma logo from getting overwritten during upgrades
This commit is contained in:
parent
2374a4f746
commit
ed9b8f77cf
|
@ -276,10 +276,12 @@ function install_gnusocial_default_background {
|
|||
# customise the logo
|
||||
if [ -f $basedir/static/logo.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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue