Remove multiple files and folders after Joomla manual upgrade



  • Upgrading 1.6.5 to 1.7: http://docs.joomla.org/Upgrading_1.6.5_to_1.7

    In case the Quick Update fails with "Copy failed" error

    -1 - An error has occurred.
    Copy failed

    Return to Control Panel

    you may need to proceed with Manual Upload/Installation, that involves deleting the files and folders listed in /administrator/components/com_admin/script.php

    Here is a shell (linux) script to delete files automatically. You need to change the "username" for SERVERUSER and optionally add the INSTALLDIR:

    #!/bin/bash
    
    SERVERUSER="username"     #username on your server (same as login name for cPanel) /home/SERVERUSER
    INSTALLDIR=""            #optional, always start with "/" example: /myjoomla will point to www.your-domain.com/myjoomla directory
    
    #change JOOMLAPATH to point to your Joomla! installation directory, the setting below works on default cPanel servers
    #if SERVERUSER and INSTALLDIR is correctly set
    
    JOOMLAPATH="/home/$SERVERUSER/public_html$INSTALLDIR"
    echo "Home Directory: /home/"$SERVERUSER 
    echo "Joomla Install:" $JOOMLAPATH
    
    #verify and accept before removing old files
    read -p "Continue with removal (y/n)?"
        if [ $REPLY != "y" ]; then
        echo "Exiting..."
        exit 1
        fi
    
    #remove files after Joomla 1.7 manual upgrade
    rm -f -v $JOOMLAPATH/templates/atomic/css/blueprint/src/blueprintcss-0-9-1-cheatsheet-3-5-3-gjms.pdf
    rm -f -v $JOOMLAPATH/administrator/manifests/packages/joomla.xml
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/css/rounded.css
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/css/norounded.css
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_corner_bl.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_header_right_rtl.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_br_dark.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_br_black.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_tr_black.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_bl_dark.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_tr_med.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_bl_light.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_header_right.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_br_light.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_tl_black.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_bl_black.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_tr_dark.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_bl_med.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_header_left.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_tl_med.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_tl_dark.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_br_med.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_tl_light.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_crn_tr_light.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_corner_br.png
    rm -f -v $JOOMLAPATH/administrator/templates/bluestork/images/j_header_left_rtl.png
    rm -f -v $JOOMLAPATH/administrator/templates/hathor/html/com_modules/module/modal.php
    rm -f -v $JOOMLAPATH/administrator/templates/hathor/html/com_modules/module/edit_assignment.php
    rm -f -v $JOOMLAPATH/administrator/templates/hathor/html/com_menus/item/edit_modules.php
    rm -f -v $JOOMLAPATH/administrator/templates/hathor/html/com_menus/items/default_batch.php
    rm -f -v $JOOMLAPATH/administrator/templates/hathor/html/com_languages/language/edit.php
    rm -f -v $JOOMLAPATH/administrator/templates/hathor/html/com_content/article/edit_metadata.php
    rm -f -v $JOOMLAPATH/administrator/templates/hathor/html/com_categories/category/edit_metadata.php
    rm -f -v $JOOMLAPATH/administrator/templates/hathor/html/com_categories/categories/default_batch.php
    rm -f -v $JOOMLAPATH/administrator/components/com_menus/models/forms/item_options.xml
    rm -f -v $JOOMLAPATH/administrator/language/overrides/xx-XX.override.ini
    rm -f -v $JOOMLAPATH/administrator/help/helpsites-16.xml
    rm -f -v $JOOMLAPATH/administrator/help/en-GB/Components_Content_Categories_Edit.html
    rm -f -v $JOOMLAPATH/administrator/help/en-GB/Components_Weblinks_Categories_Edit.html
    rm -f -v $JOOMLAPATH/administrator/help/en-GB/Components_Newsfeeds_Categories_Edit.html
    rm -f -v $JOOMLAPATH/administrator/help/en-GB/Components_Banners_Categories_Edit.html
    rm -f -v $JOOMLAPATH/administrator/help/en-GB/Components_Contact_Categories_Edit.html
    rm -f -v $JOOMLAPATH/media/editors/codemirror/css/docs.css
    rm -f -v $JOOMLAPATH/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.js
    rm -f -v $JOOMLAPATH/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php
    rm -f -v $JOOMLAPATH/media/editors/tinymce/jscripts/tiny_mce/plugins/media/css/content.css
    rm -f -v $JOOMLAPATH/media/mod_languages/images/ta.gif
    rm -f -v $JOOMLAPATH/libraries/joomla/config.php
    rm -f -v $JOOMLAPATH/libraries/joomla/import.php
    rm -f -v $JOOMLAPATH/libraries/joomla/version.php
    
    #verify and accept before removing old directories
    read -p "Continue with removal (y/n)?"
        if [ $REPLY != "y" ]; then
        echo "Exiting..."
        exit 1
        fi
    
    #and directories
    rm -f -r  -v $JOOMLAPATH/plugins/authentication/example
    rm -f -r -v $JOOMLAPATH/plugins/user/example
    rm -f -r -v $JOOMLAPATH/plugins/content/example
    rm -f -r -v $JOOMLAPATH/plugins/extension/example
    rm -f -r -v $JOOMLAPATH/administrator/templates/hathor/html/com_modules/select
    rm -f -r -v $JOOMLAPATH/administrator/templates/hathor/html/com_media
    rm -f -r -v $JOOMLAPATH/administrator/templates/hathor/html/mod_popular
    rm -f -r -v $JOOMLAPATH/administrator/templates/hathor/html/mod_status
    rm -f -r -v $JOOMLAPATH/administrator/templates/hathor/html/mod_latest
    rm -f -r -v $JOOMLAPATH/administrator/components/com_weblinks/helpers/html
    rm -f -r -v $JOOMLAPATH/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/css
    rm -f -r -v $JOOMLAPATH/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/img
    rm -f -r -v $JOOMLAPATH/media/editors/tinymce/jscripts/tiny_mce/plugins/example
    
    exit 0
    
    

    - as result, the following files and directories should be removed:

    This is the list of files:

    • /templates/atomic/css/blueprint/src/blueprintcss-0-9-1-cheatsheet-3-5-3-gjms.pdf
    • /administrator/manifests/packages/joomla.xml
    • /administrator/templates/bluestork/css/rounded.css
    • /administrator/templates/bluestork/css/norounded.css
    • /administrator/templates/bluestork/images/j_corner_bl.png
    • /administrator/templates/bluestork/images/j_header_right_rtl.png
    • /administrator/templates/bluestork/images/j_crn_br_dark.png
    • /administrator/templates/bluestork/images/j_crn_br_black.png
    • /administrator/templates/bluestork/images/j_crn_tr_black.png
    • /administrator/templates/bluestork/images/j_crn_bl_dark.png
    • /administrator/templates/bluestork/images/j_crn_tr_med.png
    • /administrator/templates/bluestork/images/j_crn_bl_light.png
    • /administrator/templates/bluestork/images/j_header_right.png
    • /administrator/templates/bluestork/images/j_crn_br_light.png
    • /administrator/templates/bluestork/images/j_crn_tl_black.png
    • /administrator/templates/bluestork/images/j_crn_bl_black.png
    • /administrator/templates/bluestork/images/j_crn_tr_dark.png
    • /administrator/templates/bluestork/images/j_crn_bl_med.png
    • /administrator/templates/bluestork/images/j_header_left.png
    • /administrator/templates/bluestork/images/j_crn_tl_med.png
    • /administrator/templates/bluestork/images/j_crn_tl_dark.png
    • /administrator/templates/bluestork/images/j_crn_br_med.png
    • /administrator/templates/bluestork/images/j_crn_tl_light.png
    • /administrator/templates/bluestork/images/j_crn_tr_light.png
    • /administrator/templates/bluestork/images/j_corner_br.png
    • /administrator/templates/bluestork/images/j_header_left_rtl.png
    • /administrator/templates/hathor/html/com_modules/module/modal.php
    • /administrator/templates/hathor/html/com_modules/module/edit_assignment.php
    • /administrator/templates/hathor/html/com_menus/item/edit_modules.php
    • /administrator/templates/hathor/html/com_menus/items/default_batch.php
    • /administrator/templates/hathor/html/com_languages/language/edit.php
    • /administrator/templates/hathor/html/com_content/article/edit_metadata.php
    • /administrator/templates/hathor/html/com_categories/category/edit_metadata.php
    • /administrator/templates/hathor/html/com_categories/categories/default_batch.php
    • /administrator/components/com_menus/models/forms/item_options.xml
    • /administrator/language/overrides/xx-XX.override.ini
    • /administrator/help/helpsites-16.xml
    • /administrator/help/en-GB/Components_Content_Categories_Edit.html
    • /administrator/help/en-GB/Components_Weblinks_Categories_Edit.html
    • /administrator/help/en-GB/Components_Newsfeeds_Categories_Edit.html
    • /administrator/help/en-GB/Components_Banners_Categories_Edit.html
    • /administrator/help/en-GB/Components_Contact_Categories_Edit.html
    • /media/editors/codemirror/css/docs.css
    • /media/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.js
    • /media/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php
    • /media/editors/tinymce/jscripts/tiny_mce/plugins/media/css/content.css
    • /media/mod_languages/images/ta.gif
    • /libraries/joomla/config.php
    • /libraries/joomla/import.php
    • /libraries/joomla/version.php

    And folders:

    • /plugins/authentication/example
    • /plugins/user/example
    • /plugins/content/example
    • /plugins/extension/example
    • /administrator/templates/hathor/html/com_modules/select
    • /administrator/templates/hathor/html/com_media
    • /administrator/templates/hathor/html/mod_popular
    • /administrator/templates/hathor/html/mod_status
    • /administrator/templates/hathor/html/mod_latest
    • /administrator/components/com_weblinks/helpers/html
    • /media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/css
    • /media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/img
    • /media/editors/tinymce/jscripts/tiny_mce/plugins/example


  • If you wish to chown files in order to enable joomla to overwrite them: http://www.videosoftware.pro/forum/THREAD-Fix-Joomla-directory-permissions?pid=4013#pid4013


Log in to reply
 

© 2108 H7 | Powered by NodeBB

Looks like your connection to H7 was lost, please wait while we try to reconnect.