diff --git a/src/freedombone-utils-gnusocialtools b/src/freedombone-utils-gnusocialtools index 8dbe5d3d..983db501 100755 --- a/src/freedombone-utils-gnusocialtools +++ b/src/freedombone-utils-gnusocialtools @@ -104,11 +104,15 @@ function pleroma_custom_logo { if [ -f "$basedir/priv/static/static/logo.png" ]; then if [ -f "$HOME/${PROJECT_NAME}/img/logo_fbone3.png" ]; then - cp "$HOME/${PROJECT_NAME}/img/logo_fbone3.png" "$basedir/static/logo.png" + if [ -d "$basedir/static" ]; then + cp "$HOME/${PROJECT_NAME}/img/logo_fbone3.png" "$basedir/static/logo.png" + fi cp "$HOME/${PROJECT_NAME}/img/logo_fbone3.png" "$basedir/priv/static/static/logo.png" else if [ -f "/home/$MY_USERNAME/${PROJECT_NAME}/img/logo_fbone3.png" ]; then - cp "/home/$MY_USERNAME/${PROJECT_NAME}/img/logo_fbone3.png" "$basedir/static/logo.png" + if [ -d "$basedir/static" ]; then + cp "/home/$MY_USERNAME/${PROJECT_NAME}/img/logo_fbone3.png" "$basedir/static/logo.png" + fi cp "/home/$MY_USERNAME/${PROJECT_NAME}/img/logo_fbone3.png" "$basedir/priv/static/static/logo.png" fi fi