This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
getting_started:install_ubuntu_update [2017/05/25 22:10] – [Update the code] admin | getting_started:install_ubuntu_update [2017/06/14 12:59] (current) – [Applying the Database Patches] admin | ||
---|---|---|---|
Line 117: | Line 117: | ||
- | ===== Changing | + | ===== Applying |
- | * RADIUSdesk makes use of the advanced rights management available with CakPHP. | + | * As the code evolve |
- | * Between CakePHP v2 and CakePHP v3 some conventions changed and we have to update some entries in the rights that was defined. | + | * These patches are non-destructive |
- | * In the past an Access Controller method called by a web page could look like this **index_ap**. | + | <code bash> |
- | * The new convention is **indexAp**. | + | cd / |
- | * The following table will indicate | + | sudo mysql -u root rd < correct_realm_acos.sql |
- | * Go to **Other -> Rights Managment -> Access Controll Objects -> Access Providers -> Controllers** and check that your system has the following changes: | + | sudo mysql -u root rd < rd_rename_key_column.sql |
- | + | sudo mysql -u root rd < rd_photo_add_active_column.sql | |
- | ^ Controller | + | sudo mysql -u root rd < rd_photo_more_enhancements.sql |
- | | Ssids | index_ap | + | sudo mysql -u root rd < top_up_improvements.sql |
- | | AccessProviders | + | sudo mysql -u root rd < add_language_selection_to_dynamic_details.sql |
- | | AccessProviders | + | sudo mysql -u root rd < captive_portal_dns.sql |
- | | AccessProviders | + | sudo mysql -u root rd < byod_improvements.sql |
- | | AccessProviders | + | sudo mysql -u root rd < rd_rename_key_column_2.sql |
- | | AccessProviders | + | sudo mysql -u root rd < correct_users_and_groups_aros.sql |
- | | AccessProviders | + | </ |
- | | Tags | export_csv | + | |
- | | Tags | index_for_filter | + | |
- | | Tags | note_index | + | |
- | | Tags | note_add | + | |
- | | Tags | note_del | + | |
- | | Ssids | index_ap | + | |
- | | Realms | + | |
- | | Realms | + | |
- | | Realms | + | |
- | | Realms | + | |
- | | Realms | + | |
- | | Realms | + | |
- | | Realms | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | DynamicDetails | + | |
- | | Profiles | + | |
- | | Profiles | + | |
- | | Profiles | + | |
- | | Profiles | + | |
- | | Profiles | + | |
- | | Profiles | + | |
- | | Profiles | + | |
- | * Be sure to also allow new additions under **Access Provider Rights** | + | ------ |
- | + | ||
- | + | ||
- | <WRAP center round info 100%> | + | |
- | Be sure to check this table out upon each SVN update since it will grow as we migrate more and more controllers from CakePHP v2 to CakePHP v3. | + | |
- | </ | + | |
===== Copy the existing images | ===== Copy the existing images | ||
Line 198: | Line 153: | ||
- | ===== Patching | + | ===== Updating the rights system on the database ===== |
- | * Here we'll list the sql patches | + | * Since we are migrating from CakePHP v2 to CakePHP v3 some conventions on the rights system changed. |
+ | * We developed a script which you can run to fix these conventions for you. | ||
+ | * Again this script is non-destructive which means you can run it multiple times, especially after new code has been added from the SVN repository. | ||
<code bash> | <code bash> | ||
- | #You can run this multiple times they are non-destructive | + | cd / |
- | #Rename the key column to avoid clashing with SQL reserved words | + | sudo ./bin/cake migrate_radiusdesk |
- | sudo mysql -u root rd < / | + | sudo chown -R www-data. |
- | #Add feature to enable | + | sudo chown -R www-data. |
- | sudo mysql -u root rd < / | + | sudo chown -R www-data. |
- | #Some more enhancements | + | sudo chown -R www-data. |
- | sudo mysql -u root rd < / | + | sudo chown -R www-data. |
- | #Some DNS Enhancements | + | sudo chown -R www-data. |
- | sudo mysql -u root rd < / | + | sudo chown -R www-data. / |
- | #Adjust ACOs rights | + | |
- | sudo mysql -u root rd < / | + | |
</ | </ | ||