Created
February 23, 2012 18:33
-
-
Save kostajh/1894250 to your computer and use it in GitHub Desktop.
Abandon install profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Site specific options | |
$options['destination'] = 'sites/all/modules/contrib'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Site specific options | |
$options['destination'] = 'profiles/my_profile/modules/contrib'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run from the root of your site directory | |
export $PROFILE="my_profile" | |
mv "profiles/$PROFILE/modules/contrib/" sites/all/modules/contrib | |
mv "profiles/$PROFILE/modules/custom/" sites/all/modules/custom | |
mv "profiles/$PROFILE/themes/*" sites/all/themes/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Update contrib modules location | |
UPDATE system SET filename = REPLACE(filename,'profiles/myprofile/modules/contrib','sites/all/modules/contrib'); | |
UPDATE registry SET filename = REPLACE(filename,'profiles/myprofile/modules/contrib','sites/all/modules/contrib'); | |
UPDATE registry_file SET filename = REPLACE(filename,'profiles/myprofile/modules/contrib','sites/all/modules/contrib'); | |
-- Update custom modules location | |
UPDATE system SET filename = REPLACE(filename,'profiles/myprofile/modules/custom','sites/all/modules/custom'); | |
UPDATE registry SET filename = REPLACE(filename,'profiles/myprofile/modules/custom','sites/all/modules/custom'); | |
UPDATE registry_file SET filename = REPLACE(filename,'profiles/myprofile/modules/custom','sites/all/modules/custom'); | |
-- Update themes location | |
UPDATE system SET filename = REPLACE(filename,'profiles/myprofile/themes','sites/all/themes'); | |
UPDATE registry SET filename = REPLACE(filename,'profiles/myprofile/themes','sites/all/themes'); | |
UPDATE registry_file SET filename = REPLACE(filename,'profiles/myprofile/themes','sites/all/themes'); | |
-- Truncate cache | |
TRUNCATE cache; | |
TRUNCATE cache_bootstrap; | |
TRUNCATE cache_path; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment